Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.00157/0.00157, allocations: 119 kB / 18.5 MB, free: 4.602 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.00161/0.00161, allocations: 194.9 kB / 21.44 MB, free: 1.664 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.495/1.495, allocations: 225.6 MB / 249.8 MB, free: 3.602 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.2373/0.2373, allocations: 44.92 MB / 349.6 MB, free: 1.746 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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001984, allocations: 67.53 kB / 491.8 MB, free: 29.86 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.1397, allocations: 64.27 MB / 0.543 GB, free: 4.137 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002153/0.1418, allocations: 0.8041 MB / 0.5438 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002142/0.142, allocations: 55.77 kB / 0.5438 GB, free: 3.273 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.259e-05/0.1421, allocations: 8 kB / 0.5438 GB, free: 3.266 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001207/0.1422, allocations: 7.875 kB / 0.5438 GB, free: 3.258 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.244e-05/0.1422, allocations: 3.984 kB / 0.5439 GB, free: 3.254 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001211/0.1424, allocations: 23.91 kB / 0.5439 GB, free: 3.23 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.1425, allocations: 35.92 kB / 0.5439 GB, free: 3.195 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.595e-05/0.1426, allocations: 20.14 kB / 0.5439 GB, free: 3.176 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.455e-05/0.1426, allocations: 8 kB / 0.5439 GB, free: 3.168 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.29e-05/0.1426, allocations: 19.86 kB / 0.544 GB, free: 3.148 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.989e-05/0.1426, allocations: 4 kB / 0.544 GB, free: 3.145 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.584e-06/0.1427, allocations: 0 / 0.544 GB, free: 3.145 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.911e-05/0.1427, allocations: 12 kB / 0.544 GB, free: 3.133 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.931e-05/0.1427, allocations: 27.84 kB / 0.544 GB, free: 3.105 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001025/0.1428, allocations: 23.91 kB / 0.544 GB, free: 3.082 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.1428, allocations: 0 / 0.544 GB, free: 3.082 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1428, allocations: 3.938 kB / 0.544 GB, free: 3.078 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.1428, allocations: 0 / 0.544 GB, free: 3.078 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004263/0.1432, allocations: 347.4 kB / 0.5444 GB, free: 2.688 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.1433, allocations: 8.031 kB / 0.5444 GB, free: 2.68 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.092e-05/0.1433, allocations: 38.75 kB / 0.5444 GB, free: 2.633 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.15e-05/0.1433, allocations: 4.891 kB / 0.5444 GB, free: 2.629 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002194/0.1436, allocations: 196.2 kB / 0.5446 GB, free: 2.398 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.68e-05/0.1436, allocations: 4.375 kB / 0.5446 GB, free: 2.395 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.963e-05/0.1436, allocations: 4.375 kB / 0.5446 GB, free: 2.391 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001129/0.1437, allocations: 54.23 kB / 0.5447 GB, free: 2.332 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.1437, allocations: 3.938 kB / 0.5447 GB, free: 2.328 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.695e-06/0.1437, allocations: 0 / 0.5447 GB, free: 2.328 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.608e-06/0.1437, allocations: 0 / 0.5447 GB, free: 2.328 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.965e-05/0.1438, allocations: 15.98 kB / 0.5447 GB, free: 2.312 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004906/0.1443, allocations: 292.7 kB / 0.545 GB, free: 1.977 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.403e-05/0.1443, allocations: 26.56 kB / 0.545 GB, free: 1.941 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.869e-05/0.1443, allocations: 8.922 kB / 0.545 GB, free: 1.93 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.22e-06/0.1443, allocations: 0 / 0.545 GB, free: 1.93 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.851e-05/0.1444, allocations: 51.34 kB / 0.545 GB, free: 1.867 MB / 398.1 MB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.1444, allocations: 4 kB / 0.545 GB, free: 1.863 MB / 398.1 MB Notification: Performance of matching and sorting (n=3): time 0.000129/0.1446, allocations: 57.62 kB / 0.5451 GB, free: 1.801 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.72e-05/0.1446, allocations: 51.41 kB / 0.5451 GB, free: 1.738 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001014/0.1447, allocations: 117.8 kB / 0.5453 GB, free: 1.613 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.944e-05/0.1447, allocations: 29.7 kB / 0.5453 GB, free: 1.578 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.911e-05/0.1448, allocations: 84.14 kB / 0.5454 GB, free: 1.492 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.539e-05/0.1448, allocations: 23.94 kB / 0.5454 GB, free: 1.469 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.749e-05/0.1448, allocations: 13.72 kB / 0.5454 GB, free: 1.449 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.145, allocations: 326.7 kB / 0.5457 GB, free: 1.121 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.061e-05/0.145, allocations: 11.98 kB / 0.5457 GB, free: 1.109 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.405e-05/0.145, allocations: 13.72 kB / 0.5457 GB, free: 1.09 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.185e-05/0.1451, allocations: 25.72 kB / 0.5458 GB, free: 1.059 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.1451, allocations: 0 / 0.5458 GB, free: 1.059 MB / 398.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.352e-05/0.1451, allocations: 57.58 kB / 0.5458 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.1452, allocations: 4.031 kB / 0.5458 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.1452, allocations: 4 kB / 0.5458 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.1452, allocations: 7.938 kB / 0.5458 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.713e-05/0.1452, allocations: 0 / 0.5458 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.1452, allocations: 4 kB / 0.5458 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.43e-05/0.1452, allocations: 7.922 kB / 0.5458 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.1453, allocations: 4 kB / 0.5458 GB, free: 0.9648 MB / 398.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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 7.952e-05/0.1453, allocations: 109.8 kB / 0.5459 GB, free: 0.8477 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.435e-05/0.1453, allocations: 7.953 kB / 0.546 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.742e-05/0.1454, allocations: 11.91 kB / 0.546 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.1454, allocations: 0 / 0.546 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1454, allocations: 3.938 kB / 0.546 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.1454, allocations: 7.938 kB / 0.546 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000299/0.1457, allocations: 290.6 kB / 0.5463 GB, free: 480 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.1457, allocations: 4 kB / 0.5463 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.994e-05/0.1457, allocations: 4 kB / 0.5463 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.694e-06/0.1457, allocations: 0 / 0.5463 GB, free: 472 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-06/0.1457, allocations: 3.938 kB / 0.5463 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.1457, allocations: 0 / 0.5463 GB, free: 468 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1457, allocations: 4 kB / 0.5463 GB, free: 464 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001437/0.1459, allocations: 155.4 kB / 0.5464 GB, free: 292 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.07e-05/0.1459, allocations: 81.14 kB / 0.5465 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.335e-05/0.1459, allocations: 3.938 kB / 0.5465 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.273e-05/0.146, allocations: 0 / 0.5465 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.698e-05/0.146, allocations: 4.422 kB / 0.5465 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-06/0.146, allocations: 3.984 kB / 0.5465 GB, free: 180 kB / 398.1 MB Notification: Performance of sorting global known variables: time 6.169e-05/0.1461, allocations: 99.66 kB / 0.5466 GB, free: 80 kB / 398.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1461, allocations: 0 / 0.5466 GB, free: 80 kB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002181/0.1463, allocations: 11.95 kB / 0.5466 GB, free: 68 kB / 398.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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0004548/0.1468, allocations: 0.6773 MB / 0.5473 GB, free: 15.36 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 8.526e-05/0.1469, allocations: 23.92 kB / 0.5473 GB, free: 15.34 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.481e-06/0.1469, allocations: 4.125 kB / 0.5473 GB, free: 15.34 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.064e-05/0.1469, allocations: 11.94 kB / 0.5473 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002544/0.1471, allocations: 5.719 kB / 0.5473 GB, free: 15.32 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001178/0.1483, allocations: 1.296 MB / 0.5486 GB, free: 13.94 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003436/0.1487, allocations: 0.6883 MB / 0.5493 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.312e-05/0.1487, allocations: 7.984 kB / 0.5493 GB, free: 13.22 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.368e-05/0.1487, allocations: 15.44 kB / 0.5493 GB, free: 13.2 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1487, allocations: 4 kB / 0.5493 GB, free: 13.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02327/0.172, allocations: 1.578 MB / 0.5508 GB, free: 11.71 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.765/7.937, allocations: 11.94 kB / 0.5508 GB, free: 11.7 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000998004 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.095717397052795]