Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001314/0.001314, allocations: 121 kB / 18.49 MB, free: 4.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00156/0.00156, allocations: 213.5 kB / 21.45 MB, free: 1.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.474/1.474, allocations: 230.6 MB / 254.8 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2492/0.2492, allocations: 46.91 MB / 357.8 MB, free: 10.28 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 67.91 kB / 0.4916 GB, free: 7.926 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1227, allocations: 65.98 MB / 0.556 GB, free: 5.816 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003268/0.126, allocations: 1.656 MB / 0.5577 GB, free: 4.148 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.1272, allocations: 0.5938 MB / 0.5582 GB, free: 3.551 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.1273, allocations: 4 kB / 0.5582 GB, free: 3.547 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001189/0.1275, allocations: 11.86 kB / 0.5583 GB, free: 3.535 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.148e-05/0.1275, allocations: 11.81 kB / 0.5583 GB, free: 3.523 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003894/0.1279, allocations: 87.81 kB / 0.5584 GB, free: 3.438 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002023/0.1281, allocations: 115.7 kB / 0.5585 GB, free: 3.324 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.1282, allocations: 31.97 kB / 0.5585 GB, free: 3.293 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.1284, allocations: 47.83 kB / 0.5585 GB, free: 3.246 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.848e-05/0.1284, allocations: 39.83 kB / 0.5586 GB, free: 3.207 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.544e-05/0.1285, allocations: 8 kB / 0.5586 GB, free: 3.199 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.667e-05/0.1285, allocations: 8 kB / 0.5586 GB, free: 3.191 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.875e-05/0.1285, allocations: 19.92 kB / 0.5586 GB, free: 3.172 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.91e-05/0.1286, allocations: 43.73 kB / 0.5587 GB, free: 3.129 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001767/0.1287, allocations: 91.5 kB / 0.5587 GB, free: 3.039 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.089e-05/0.1288, allocations: 4 kB / 0.5587 GB, free: 3.035 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1288, allocations: 0 / 0.5587 GB, free: 3.035 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.1288, allocations: 4 kB / 0.5587 GB, free: 3.031 MB / 414.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.0007222/0.1295, allocations: 411.1 kB / 0.5591 GB, free: 2.582 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.1295, allocations: 8.031 kB / 0.5591 GB, free: 2.574 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.063e-05/0.1295, allocations: 8.125 kB / 0.5592 GB, free: 2.566 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.892e-05/0.1296, allocations: 38.73 kB / 0.5592 GB, free: 2.52 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.43e-05/0.1296, allocations: 16.88 kB / 0.5592 GB, free: 2.504 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003171/0.13, allocations: 208.1 kB / 0.5594 GB, free: 2.262 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.291e-05/0.13, allocations: 8.375 kB / 0.5594 GB, free: 2.254 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.702e-05/0.13, allocations: 8.375 kB / 0.5594 GB, free: 2.246 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003049/0.1303, allocations: 105.5 kB / 0.5595 GB, free: 2.137 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.1303, allocations: 0 / 0.5595 GB, free: 2.137 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.082e-05/0.1303, allocations: 0 / 0.5595 GB, free: 2.137 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.1303, allocations: 8 kB / 0.5595 GB, free: 2.129 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002002/0.1305, allocations: 47.97 kB / 0.5596 GB, free: 2.082 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007391/0.1313, allocations: 392.5 kB / 0.5599 GB, free: 1.648 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003881/0.1317, allocations: 102.5 kB / 0.56 GB, free: 1.539 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001243/0.1318, allocations: 36.92 kB / 0.5601 GB, free: 1.5 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.663e-05/0.1318, allocations: 3.984 kB / 0.5601 GB, free: 1.496 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002846/0.1321, allocations: 91.36 kB / 0.5602 GB, free: 1.395 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.693e-06/0.1321, allocations: 3.938 kB / 0.5602 GB, free: 1.391 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005222/0.1326, allocations: 145.5 kB / 0.5603 GB, free: 1.242 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.373e-05/0.1327, allocations: 59.34 kB / 0.5604 GB, free: 1.172 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001598/0.1328, allocations: 143.9 kB / 0.5605 GB, free: 1.023 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.304e-05/0.1329, allocations: 25.7 kB / 0.5605 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.318e-05/0.1329, allocations: 116.1 kB / 0.5606 GB, free: 0.875 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.916e-05/0.133, allocations: 15.86 kB / 0.5607 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.732e-05/0.133, allocations: 25.7 kB / 0.5607 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001633/0.1332, allocations: 322.8 kB / 0.561 GB, free: 0.5039 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001378/0.1333, allocations: 31.98 kB / 0.561 GB, free: 484 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001603/0.1335, allocations: 53.69 kB / 0.5611 GB, free: 424 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002434/0.1337, allocations: 77.61 kB / 0.5611 GB, free: 340 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.336e-06/0.1337, allocations: 0 / 0.5611 GB, free: 340 kB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000426/0.1342, allocations: 129.6 kB / 0.5613 GB, free: 204 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2e-05/0.1342, allocations: 4 kB / 0.5613 GB, free: 200 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.1342, allocations: 4 kB / 0.5613 GB, free: 196 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/0.1342, allocations: 4 kB / 0.5613 GB, free: 192 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.1344, allocations: 15.98 kB / 0.5613 GB, free: 176 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.1344, allocations: 0 / 0.5613 GB, free: 176 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.1345, allocations: 20.09 kB / 0.5613 GB, free: 156 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.531e-05/0.1345, allocations: 8 kB / 0.5613 GB, free: 148 kB / 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.000125/0.1346, allocations: 125.7 kB / 0.5614 GB, free: 16 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.732e-05/0.1346, allocations: 15.84 kB / 0.5615 GB, free: 0 / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.472e-05/0.1347, allocations: 12.72 kB / 0.5615 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.1347, allocations: 0 / 0.5615 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1347, allocations: 0 / 0.5615 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.1347, allocations: 4 kB / 0.5615 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006606/0.1354, allocations: 394.4 kB / 0.5619 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.1354, allocations: 0 / 0.5619 GB, free: 15.54 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001128/0.1355, allocations: 15.94 kB / 0.5619 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.1355, allocations: 0 / 0.5619 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.1355, allocations: 7.984 kB / 0.5619 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.1355, allocations: 0 / 0.5619 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.1355, allocations: 0 / 0.5619 GB, free: 15.52 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000581/0.1361, allocations: 251.7 kB / 0.5621 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.339e-05/0.1362, allocations: 85.02 kB / 0.5622 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.524e-05/0.1362, allocations: 4.031 kB / 0.5622 GB, free: 15.15 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.1363, allocations: 27.95 kB / 0.5622 GB, free: 15.12 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.468e-05/0.1364, allocations: 7.984 kB / 0.5622 GB, free: 15.11 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.15e-05/0.1364, allocations: 4 kB / 0.5622 GB, free: 15.11 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000104/0.1365, allocations: 114.1 kB / 0.5623 GB, free: 15 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1365, allocations: 4.062 kB / 0.5624 GB, free: 15 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002582/0.1368, allocations: 19.94 kB / 0.5624 GB, free: 14.98 MB / 430.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.0008309/0.1376, allocations: 0.7788 MB / 0.5631 GB, free: 14.17 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003328/0.1379, allocations: 83.88 kB / 0.5632 GB, free: 14.09 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1379, allocations: 0 / 0.5632 GB, free: 14.09 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001624/0.1381, allocations: 40.11 kB / 0.5632 GB, free: 14.05 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003201/0.1384, allocations: 22.17 kB / 0.5633 GB, free: 14.03 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002874/0.1413, allocations: 1.701 MB / 0.5649 GB, free: 12.24 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003389/0.1416, allocations: 0.6963 MB / 0.5656 GB, free: 11.52 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.396e-05/0.1417, allocations: 12.55 kB / 0.5656 GB, free: 11.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.444e-05/0.1418, allocations: 31.44 kB / 0.5657 GB, free: 11.47 MB / 430.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1418, allocations: 0 / 0.5657 GB, free: 11.47 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01949/0.1613, allocations: 2.664 MB / 0.5683 GB, free: 8.902 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.177/8.338, allocations: 14.02 kB / 0.5683 GB, free: 8.891 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.47526746703079]