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.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.001571/0.001571, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.00175/0.00175, allocations: 211.2 kB / 20.75 MB, free: 2.27 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.582/1.582, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.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.2277/0.2277, allocations: 44.9 MB / 355.1 MB, free: 12.32 MB / 286.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.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.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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 67.89 kB / 499.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1372, allocations: 65.43 MB / 0.5517 GB, free: 10.14 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002324/0.1395, allocations: 0.811 MB / 0.5525 GB, free: 9.332 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002129/0.1397, allocations: 55.88 kB / 0.5526 GB, free: 9.277 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.479e-05/0.1398, allocations: 3.938 kB / 0.5526 GB, free: 9.273 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001049/0.1399, allocations: 3.938 kB / 0.5526 GB, free: 9.27 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 1.852e-05/0.1399, allocations: 3.938 kB / 0.5526 GB, free: 9.266 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001088/0.14, allocations: 15.98 kB / 0.5526 GB, free: 9.25 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000112/0.1401, allocations: 43.84 kB / 0.5527 GB, free: 9.207 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.37e-05/0.1402, allocations: 16.22 kB / 0.5527 GB, free: 9.191 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.582e-05/0.1403, allocations: 19.91 kB / 0.5527 GB, free: 9.172 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.851e-05/0.1403, allocations: 11.94 kB / 0.5527 GB, free: 9.16 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.048e-05/0.1403, allocations: 4 kB / 0.5527 GB, free: 9.156 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.526e-06/0.1403, allocations: 0 / 0.5527 GB, free: 9.156 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.346e-05/0.1403, allocations: 11.98 kB / 0.5527 GB, free: 9.145 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.155e-05/0.1404, allocations: 15.88 kB / 0.5527 GB, free: 9.129 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001119/0.1405, allocations: 39.81 kB / 0.5528 GB, free: 9.09 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1405, allocations: 3.938 kB / 0.5528 GB, free: 9.086 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1405, allocations: 0 / 0.5528 GB, free: 9.086 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.1405, allocations: 4 kB / 0.5528 GB, free: 9.082 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004623/0.141, allocations: 351.3 kB / 0.5531 GB, free: 8.688 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.141, allocations: 8.031 kB / 0.5531 GB, free: 8.68 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.644e-05/0.141, allocations: 30.75 kB / 0.5532 GB, free: 8.641 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.181e-05/0.1411, allocations: 4.938 kB / 0.5532 GB, free: 8.637 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002298/0.1413, allocations: 188.2 kB / 0.5533 GB, free: 8.414 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.748e-06/0.1413, allocations: 384 / 0.5533 GB, free: 8.414 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.263e-05/0.1413, allocations: 4.375 kB / 0.5533 GB, free: 8.41 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001208/0.1415, allocations: 58.23 kB / 0.5534 GB, free: 8.348 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.1415, allocations: 3.938 kB / 0.5534 GB, free: 8.344 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.898e-06/0.1415, allocations: 3.984 kB / 0.5534 GB, free: 8.34 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-06/0.1415, allocations: 0 / 0.5534 GB, free: 8.34 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.079e-05/0.1415, allocations: 12 kB / 0.5534 GB, free: 8.328 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004914/0.142, allocations: 292.7 kB / 0.5537 GB, free: 7.992 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.805e-05/0.1421, allocations: 26.58 kB / 0.5537 GB, free: 7.957 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.632e-05/0.1421, allocations: 8.859 kB / 0.5537 GB, free: 7.945 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.615e-06/0.1421, allocations: 0 / 0.5537 GB, free: 7.945 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.917e-05/0.1422, allocations: 59.41 kB / 0.5538 GB, free: 7.875 MB / 414.1 MB Notification: Performance of pre-optimization done (n=3): time 8.52e-07/0.1422, allocations: 0 / 0.5538 GB, free: 7.875 MB / 414.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001515/0.1423, allocations: 57.64 kB / 0.5538 GB, free: 7.812 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.1424, allocations: 51.41 kB / 0.5539 GB, free: 7.75 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001047/0.1425, allocations: 113.8 kB / 0.554 GB, free: 7.629 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.1425, allocations: 33.69 kB / 0.554 GB, free: 7.59 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.607e-05/0.1426, allocations: 92.09 kB / 0.5541 GB, free: 7.496 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.195e-05/0.1426, allocations: 3.953 kB / 0.5541 GB, free: 7.492 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.553e-05/0.1426, allocations: 17.72 kB / 0.5541 GB, free: 7.469 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.1428, allocations: 326.7 kB / 0.5544 GB, free: 7.141 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.695e-05/0.1428, allocations: 4 kB / 0.5545 GB, free: 7.137 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.826e-05/0.1428, allocations: 17.72 kB / 0.5545 GB, free: 7.113 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.405e-05/0.1428, allocations: 37.64 kB / 0.5545 GB, free: 7.07 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1428, allocations: 384 / 0.5545 GB, free: 7.07 MB / 414.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.925e-05/0.1429, allocations: 49.92 kB / 0.5546 GB, free: 7.016 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.1429, allocations: 4 kB / 0.5546 GB, free: 7.012 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.293e-06/0.143, allocations: 3.984 kB / 0.5546 GB, free: 7.008 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.143, allocations: 7.969 kB / 0.5546 GB, free: 7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.045e-05/0.143, allocations: 4 kB / 0.5546 GB, free: 6.996 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.143, allocations: 0 / 0.5546 GB, free: 6.996 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.15e-05/0.143, allocations: 19.86 kB / 0.5546 GB, free: 6.977 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.977e-06/0.143, allocations: 0 / 0.5546 GB, free: 6.977 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: 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 8.483e-05/0.1431, allocations: 113.8 kB / 0.5547 GB, free: 6.855 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.657e-06/0.1431, allocations: 0 / 0.5547 GB, free: 6.855 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.031e-05/0.1432, allocations: 15.89 kB / 0.5547 GB, free: 6.836 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.1432, allocations: 0 / 0.5547 GB, free: 6.836 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.1432, allocations: 3.938 kB / 0.5547 GB, free: 6.832 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.1432, allocations: 3.938 kB / 0.5547 GB, free: 6.828 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003134/0.1435, allocations: 298.6 kB / 0.555 GB, free: 6.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1435, allocations: 0 / 0.555 GB, free: 6.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.182e-05/0.1435, allocations: 3.984 kB / 0.555 GB, free: 6.477 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1435, allocations: 0 / 0.555 GB, free: 6.477 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/0.1435, allocations: 7.938 kB / 0.555 GB, free: 6.469 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1435, allocations: 0 / 0.555 GB, free: 6.469 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1435, allocations: 0 / 0.555 GB, free: 6.469 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001465/0.1437, allocations: 147.5 kB / 0.5552 GB, free: 6.309 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.365e-05/0.1437, allocations: 81.06 kB / 0.5552 GB, free: 6.211 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.632e-05/0.1438, allocations: 12.03 kB / 0.5552 GB, free: 6.199 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.237e-05/0.1438, allocations: 3.984 kB / 0.5553 GB, free: 6.195 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.552e-05/0.1439, allocations: 4 kB / 0.5553 GB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.635e-06/0.1439, allocations: 8 kB / 0.5553 GB, free: 6.184 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.827e-05/0.1439, allocations: 91.27 kB / 0.5554 GB, free: 6.094 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1439, allocations: 0 / 0.5554 GB, free: 6.094 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002122/0.1441, allocations: 4 kB / 0.5554 GB, free: 6.09 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: 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.0004594/0.1446, allocations: 0.6812 MB / 0.556 GB, free: 5.383 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.422e-05/0.1447, allocations: 19.92 kB / 0.556 GB, free: 5.363 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1447, allocations: 0 / 0.556 GB, free: 5.363 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.319e-05/0.1447, allocations: 15.94 kB / 0.5561 GB, free: 5.348 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002583/0.145, allocations: 20.14 kB / 0.5561 GB, free: 5.328 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.1462, allocations: 1.284 MB / 0.5573 GB, free: 3.961 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000321/0.1465, allocations: 0.6846 MB / 0.558 GB, free: 3.25 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.161e-05/0.1465, allocations: 4 kB / 0.558 GB, free: 3.246 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.698e-05/0.1466, allocations: 15.44 kB / 0.558 GB, free: 3.23 MB / 414.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1466, allocations: 0 / 0.558 GB, free: 3.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02381/0.1704, allocations: 1.551 MB / 0.5595 GB, free: 1.762 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.056/8.227, allocations: 16.67 kB / 0.5595 GB, free: 1.75 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000998004 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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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.441135810688138]