Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001754/0.001754, allocations: 119 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002047/0.002047, allocations: 190.9 kB / 21.44 MB, free: 1.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.555/1.555, allocations: 225.6 MB / 249.8 MB, free: 3.629 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2425/0.2425, allocations: 44.92 MB / 349.6 MB, free: 1.738 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 64.25 kB / 491.8 MB, free: 29.98 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1379, allocations: 64.26 MB / 0.543 GB, free: 4.137 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002985/0.1409, allocations: 1.623 MB / 0.5446 GB, free: 2.5 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.1419, allocations: 0.5688 MB / 0.5451 GB, free: 1.926 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.394e-05/0.142, allocations: 3.938 kB / 0.5451 GB, free: 1.922 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001283/0.1421, allocations: 11.88 kB / 0.5451 GB, free: 1.91 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.449e-05/0.1422, allocations: 15.86 kB / 0.5452 GB, free: 1.895 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003531/0.1426, allocations: 87.7 kB / 0.5452 GB, free: 1.809 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001842/0.1427, allocations: 115.7 kB / 0.5454 GB, free: 1.695 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001261/0.1429, allocations: 27.92 kB / 0.5454 GB, free: 1.668 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.611e-05/0.143, allocations: 55.77 kB / 0.5454 GB, free: 1.613 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.708e-05/0.143, allocations: 39.78 kB / 0.5455 GB, free: 1.574 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.245e-05/0.1431, allocations: 8 kB / 0.5455 GB, free: 1.566 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.596e-05/0.1431, allocations: 8 kB / 0.5455 GB, free: 1.559 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.137e-05/0.1431, allocations: 19.92 kB / 0.5455 GB, free: 1.539 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.118e-05/0.1432, allocations: 35.8 kB / 0.5455 GB, free: 1.504 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001688/0.1433, allocations: 91.61 kB / 0.5456 GB, free: 1.414 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1433, allocations: 0 / 0.5456 GB, free: 1.414 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.1433, allocations: 0 / 0.5456 GB, free: 1.414 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.005e-06/0.1433, allocations: 4 kB / 0.5456 GB, free: 1.41 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007436/0.1441, allocations: 419 kB / 0.546 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.1441, allocations: 11.97 kB / 0.546 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.256e-05/0.1442, allocations: 38.75 kB / 0.5461 GB, free: 0.8945 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.119e-05/0.1442, allocations: 16.84 kB / 0.5461 GB, free: 0.8789 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003131/0.1445, allocations: 200.2 kB / 0.5463 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.913e-05/0.1446, allocations: 8.375 kB / 0.5463 GB, free: 0.6367 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.146e-05/0.1446, allocations: 8.375 kB / 0.5463 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002889/0.1449, allocations: 101.7 kB / 0.5464 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.1449, allocations: 7.938 kB / 0.5464 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.523e-05/0.1449, allocations: 4 kB / 0.5464 GB, free: 0.5117 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.1449, allocations: 3.984 kB / 0.5464 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001692/0.1451, allocations: 59.95 kB / 0.5465 GB, free: 460 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007164/0.1458, allocations: 380.7 kB / 0.5468 GB, free: 28 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003638/0.1461, allocations: 98.55 kB / 0.5469 GB, free: 15.92 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.1463, allocations: 36.88 kB / 0.547 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.467e-05/0.1463, allocations: 0 / 0.547 GB, free: 15.88 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002622/0.1465, allocations: 99.31 kB / 0.5471 GB, free: 15.77 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.262e-06/0.1465, allocations: 11.88 kB / 0.5471 GB, free: 15.76 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004693/0.147, allocations: 141.5 kB / 0.5472 GB, free: 15.62 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.209e-05/0.1471, allocations: 51.41 kB / 0.5473 GB, free: 15.55 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.1472, allocations: 155.1 kB / 0.5474 GB, free: 15.39 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.1472, allocations: 25.7 kB / 0.5474 GB, free: 15.36 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.583e-05/0.1473, allocations: 108 kB / 0.5475 GB, free: 15.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.544e-05/0.1473, allocations: 15.89 kB / 0.5475 GB, free: 15.24 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.017e-05/0.1474, allocations: 29.72 kB / 0.5476 GB, free: 15.2 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.1476, allocations: 322.8 kB / 0.5479 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.1477, allocations: 35.97 kB / 0.5479 GB, free: 14.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.1478, allocations: 53.62 kB / 0.548 GB, free: 14.79 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002119/0.148, allocations: 73.69 kB / 0.548 GB, free: 14.71 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.148, allocations: 0 / 0.548 GB, free: 14.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003012/0.1484, allocations: 121.6 kB / 0.5482 GB, free: 14.58 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.1484, allocations: 15.92 kB / 0.5482 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.501e-06/0.1484, allocations: 320 / 0.5482 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.654e-05/0.1484, allocations: 0 / 0.5482 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.1485, allocations: 15.94 kB / 0.5482 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.1485, allocations: 7.922 kB / 0.5482 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.132e-05/0.1486, allocations: 19.94 kB / 0.5482 GB, free: 14.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.365e-06/0.1486, allocations: 8.266 kB / 0.5482 GB, free: 14.52 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,change.u,$PRE.change.u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000124/0.1487, allocations: 125.8 kB / 0.5483 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.109e-05/0.1487, allocations: 11.89 kB / 0.5484 GB, free: 14.37 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.046e-05/0.1488, allocations: 12.66 kB / 0.5484 GB, free: 14.36 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.801e-06/0.1488, allocations: 4 kB / 0.5484 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.1488, allocations: 0 / 0.5484 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.1488, allocations: 3.984 kB / 0.5484 GB, free: 14.35 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000564/0.1494, allocations: 398.3 kB / 0.5488 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.1494, allocations: 0 / 0.5488 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.31e-05/0.1495, allocations: 11.98 kB / 0.5488 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.1495, allocations: 0 / 0.5488 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.189e-05/0.1495, allocations: 4 kB / 0.5488 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.376e-06/0.1495, allocations: 8 kB / 0.5488 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1495, allocations: 0 / 0.5488 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004615/0.1499, allocations: 247.3 kB / 0.549 GB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.951e-05/0.15, allocations: 89.08 kB / 0.5491 GB, free: 13.52 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.861e-05/0.15, allocations: 4.062 kB / 0.5491 GB, free: 13.51 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001298/0.1501, allocations: 15.98 kB / 0.5491 GB, free: 13.5 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.499e-05/0.1502, allocations: 19.97 kB / 0.5491 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.1502, allocations: 0 / 0.5491 GB, free: 13.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.811e-05/0.1503, allocations: 113 kB / 0.5492 GB, free: 13.37 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1503, allocations: 0 / 0.5492 GB, free: 13.37 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002238/0.1505, allocations: 12 kB / 0.5493 GB, free: 13.36 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,change.u) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008606/0.1514, allocations: 0.7904 MB / 0.55 GB, free: 12.54 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003113/0.1517, allocations: 76.02 kB / 0.5501 GB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.1517, allocations: 0 / 0.5501 GB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001415/0.1518, allocations: 47.91 kB / 0.5501 GB, free: 12.42 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000318/0.1522, allocations: 20.05 kB / 0.5502 GB, free: 12.4 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002385/0.1545, allocations: 1.649 MB / 0.5518 GB, free: 10.66 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003772/0.1549, allocations: 0.6963 MB / 0.5525 GB, free: 9.938 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.966e-05/0.155, allocations: 8.562 kB / 0.5525 GB, free: 9.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.671e-05/0.155, allocations: 35.42 kB / 0.5525 GB, free: 9.895 MB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.155, allocations: 0 / 0.5525 GB, free: 9.895 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02521/0.1803, allocations: 2.652 MB / 0.5551 GB, free: 7.324 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.923/8.103, allocations: 9.109 kB / 0.5551 GB, free: 7.316 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.276879011187702]