Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001559/0.001559, allocations: 120 kB / 18.49 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001791/0.001791, allocations: 218.3 kB / 21.46 MB, free: 1.613 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 230.5 MB / 254.7 MB, free: 15.04 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2141/0.2141, allocations: 46.92 MB / 357.7 MB, free: 10.18 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002201/0.002201, allocations: 75.88 kB / 0.4916 GB, free: 7.715 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1187/0.1209, allocations: 66.04 MB / 0.5561 GB, free: 5.543 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002819/0.1237, allocations: 1.648 MB / 0.5577 GB, free: 3.879 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.1247, allocations: 0.5938 MB / 0.5583 GB, free: 3.281 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.716e-05/0.1248, allocations: 3.938 kB / 0.5583 GB, free: 3.277 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.1249, allocations: 15.86 kB / 0.5583 GB, free: 3.262 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 4.958e-05/0.125, allocations: 11.86 kB / 0.5584 GB, free: 3.25 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000323/0.1253, allocations: 89 kB / 0.5584 GB, free: 3.164 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001705/0.1254, allocations: 111.8 kB / 0.5585 GB, free: 3.055 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001103/0.1256, allocations: 31.97 kB / 0.5586 GB, free: 3.023 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.963e-05/0.1256, allocations: 51.77 kB / 0.5586 GB, free: 2.973 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.249e-05/0.1257, allocations: 43.83 kB / 0.5587 GB, free: 2.93 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.68e-05/0.1257, allocations: 8 kB / 0.5587 GB, free: 2.922 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.529e-05/0.1258, allocations: 8 kB / 0.5587 GB, free: 2.914 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.89e-05/0.1258, allocations: 19.92 kB / 0.5587 GB, free: 2.895 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.151e-05/0.1258, allocations: 39.73 kB / 0.5587 GB, free: 2.855 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000154/0.126, allocations: 91.52 kB / 0.5588 GB, free: 2.766 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.126, allocations: 0 / 0.5588 GB, free: 2.766 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.126, allocations: 0 / 0.5588 GB, free: 2.766 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.588e-06/0.126, allocations: 0 / 0.5588 GB, free: 2.766 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.0006603/0.1267, allocations: 423 kB / 0.5592 GB, free: 2.305 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.1267, allocations: 8.031 kB / 0.5592 GB, free: 2.297 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.74e-05/0.1267, allocations: 12.12 kB / 0.5593 GB, free: 2.285 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.742e-05/0.1268, allocations: 38.73 kB / 0.5593 GB, free: 2.238 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.43e-05/0.1268, allocations: 12.89 kB / 0.5593 GB, free: 2.227 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002732/0.1271, allocations: 196.2 kB / 0.5595 GB, free: 1.996 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/0.1271, allocations: 12.38 kB / 0.5595 GB, free: 1.984 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.751e-05/0.1271, allocations: 8.359 kB / 0.5595 GB, free: 1.977 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002951/0.1274, allocations: 111.3 kB / 0.5596 GB, free: 1.863 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.1274, allocations: 0 / 0.5596 GB, free: 1.863 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.1274, allocations: 4 kB / 0.5596 GB, free: 1.859 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.1274, allocations: 4 kB / 0.5596 GB, free: 1.855 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001698/0.1276, allocations: 51.97 kB / 0.5597 GB, free: 1.805 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007298/0.1283, allocations: 388.5 kB / 0.56 GB, free: 1.375 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003617/0.1287, allocations: 98.52 kB / 0.5601 GB, free: 1.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001177/0.1288, allocations: 32.92 kB / 0.5602 GB, free: 1.234 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.597e-05/0.1288, allocations: 8 kB / 0.5602 GB, free: 1.227 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002624/0.1291, allocations: 95.3 kB / 0.5603 GB, free: 1.121 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.302e-06/0.1291, allocations: 0 / 0.5603 GB, free: 1.121 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004803/0.1296, allocations: 145.5 kB / 0.5604 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.41e-05/0.1296, allocations: 55.41 kB / 0.5605 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/0.1298, allocations: 148.8 kB / 0.5606 GB, free: 0.7539 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.192e-05/0.1298, allocations: 29.7 kB / 0.5606 GB, free: 0.7188 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.963e-05/0.1299, allocations: 104.1 kB / 0.5607 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.724e-05/0.1299, allocations: 19.84 kB / 0.5607 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.984e-05/0.1299, allocations: 33.7 kB / 0.5608 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001463/0.1301, allocations: 322.8 kB / 0.5611 GB, free: 236 kB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001313/0.1302, allocations: 31.98 kB / 0.5611 GB, free: 204 kB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.1304, allocations: 57.62 kB / 0.5612 GB, free: 140 kB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002192/0.1306, allocations: 81.8 kB / 0.5613 GB, free: 52 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.1306, allocations: 0 / 0.5613 GB, free: 52 kB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003212/0.1309, allocations: 125.5 kB / 0.5614 GB, free: 15.92 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.569e-05/0.1309, allocations: 4 kB / 0.5614 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.1309, allocations: 0 / 0.5614 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.1309, allocations: 3.938 kB / 0.5614 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001071/0.131, allocations: 15.98 kB / 0.5614 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.131, allocations: 4 kB / 0.5614 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.527e-05/0.1311, allocations: 20.09 kB / 0.5614 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-06/0.1312, allocations: 4 kB / 0.5614 GB, free: 15.87 MB / 430.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.0001128/0.1313, allocations: 117.8 kB / 0.5615 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.227e-05/0.1313, allocations: 15.84 kB / 0.5615 GB, free: 15.73 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.26e-05/0.1313, allocations: 16.7 kB / 0.5616 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1313, allocations: 0 / 0.5616 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.1313, allocations: 0 / 0.5616 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.767e-06/0.1313, allocations: 0 / 0.5616 GB, free: 15.71 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005637/0.1319, allocations: 394.4 kB / 0.5619 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1319, allocations: 0 / 0.5619 GB, free: 15.27 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.627e-05/0.132, allocations: 11.98 kB / 0.562 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-06/0.132, allocations: 0 / 0.562 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.708e-05/0.132, allocations: 8 kB / 0.562 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.132, allocations: 0 / 0.562 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.132, allocations: 4 kB / 0.562 GB, free: 15.25 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004807/0.1325, allocations: 251.7 kB / 0.5622 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.489e-05/0.1325, allocations: 93.08 kB / 0.5623 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.824e-05/0.1326, allocations: 0 / 0.5623 GB, free: 14.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001396/0.1327, allocations: 19.97 kB / 0.5623 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.104e-05/0.1328, allocations: 15.98 kB / 0.5623 GB, free: 14.84 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.162e-06/0.1328, allocations: 0 / 0.5623 GB, free: 14.84 MB / 430.1 MB Notification: Performance of sorting global known variables: time 9.089e-05/0.1329, allocations: 115.2 kB / 0.5624 GB, free: 14.73 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1329, allocations: 0 / 0.5624 GB, free: 14.73 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000224/0.1331, allocations: 16.03 kB / 0.5625 GB, free: 14.71 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.0007774/0.1339, allocations: 0.7983 MB / 0.5632 GB, free: 13.89 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003162/0.1342, allocations: 75.94 kB / 0.5633 GB, free: 13.81 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1342, allocations: 0 / 0.5633 GB, free: 13.81 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.1343, allocations: 39.92 kB / 0.5633 GB, free: 13.77 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003106/0.1346, allocations: 27.98 kB / 0.5634 GB, free: 13.75 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002598/0.1372, allocations: 1.695 MB / 0.565 GB, free: 11.96 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.1375, allocations: 0.6963 MB / 0.5657 GB, free: 11.24 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.043e-05/0.1376, allocations: 16.55 kB / 0.5657 GB, free: 11.22 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.311e-05/0.1377, allocations: 23.44 kB / 0.5657 GB, free: 11.2 MB / 430.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1377, allocations: 0 / 0.5657 GB, free: 11.2 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01829/0.1559, allocations: 2.654 MB / 0.5683 GB, free: 8.621 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.9/8.056, allocations: 19.98 kB / 0.5684 GB, free: 8.602 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 10.956444407056551]