Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.00171/0.00171, allocations: 128.5 kB / 17.79 MB, free: 5.246 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.00176/0.00176, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.486/1.486, 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.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.2431/0.2431, allocations: 46.93 MB / 357.1 MB, free: 10.32 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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001962/0.001962, allocations: 71.91 kB / 0.4909 GB, free: 7.996 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1357/0.1376, allocations: 65.98 MB / 0.5554 GB, free: 5.887 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002275/0.1399, allocations: 0.8209 MB / 0.5562 GB, free: 5.066 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002229/0.1401, allocations: 51.88 kB / 0.5562 GB, free: 5.016 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.16e-05/0.1402, allocations: 7.938 kB / 0.5562 GB, free: 5.008 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001219/0.1403, allocations: 3.938 kB / 0.5562 GB, free: 5.004 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 1.888e-05/0.1404, allocations: 3.938 kB / 0.5562 GB, free: 5 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001224/0.1405, allocations: 15.98 kB / 0.5562 GB, free: 4.984 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000119/0.1406, allocations: 43.84 kB / 0.5563 GB, free: 4.941 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001102/0.1407, allocations: 8 kB / 0.5563 GB, free: 4.934 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.284e-05/0.1407, allocations: 15.92 kB / 0.5563 GB, free: 4.918 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.939e-05/0.1408, allocations: 19.91 kB / 0.5563 GB, free: 4.898 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.007e-05/0.1408, allocations: 7.938 kB / 0.5563 GB, free: 4.891 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.356e-06/0.1408, allocations: 0 / 0.5563 GB, free: 4.891 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.008e-05/0.1408, allocations: 12 kB / 0.5563 GB, free: 4.879 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.376e-05/0.1409, allocations: 15.88 kB / 0.5564 GB, free: 4.863 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001254/0.141, allocations: 43.75 kB / 0.5564 GB, free: 4.82 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.141, allocations: 0 / 0.5564 GB, free: 4.82 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.141, allocations: 0 / 0.5564 GB, free: 4.82 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.64e-06/0.141, allocations: 0 / 0.5564 GB, free: 4.82 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.0005177/0.1415, allocations: 351.3 kB / 0.5567 GB, free: 4.426 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.1416, allocations: 8.031 kB / 0.5567 GB, free: 4.418 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.849e-05/0.1416, allocations: 34.69 kB / 0.5568 GB, free: 4.375 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.602e-05/0.1416, allocations: 4.938 kB / 0.5568 GB, free: 4.371 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002674/0.1419, allocations: 184.3 kB / 0.557 GB, free: 4.152 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.452e-06/0.1419, allocations: 384 / 0.557 GB, free: 4.152 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.681e-05/0.1419, allocations: 4.375 kB / 0.557 GB, free: 4.148 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001295/0.1421, allocations: 50.25 kB / 0.557 GB, free: 4.094 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.1421, allocations: 3.938 kB / 0.557 GB, free: 4.09 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.1421, allocations: 3.984 kB / 0.557 GB, free: 4.086 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.1421, allocations: 0 / 0.557 GB, free: 4.086 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.74e-05/0.1421, allocations: 15.94 kB / 0.557 GB, free: 4.07 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005506/0.1427, allocations: 300.7 kB / 0.5573 GB, free: 3.727 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.318e-05/0.1428, allocations: 26.58 kB / 0.5573 GB, free: 3.691 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.039e-05/0.1428, allocations: 4.859 kB / 0.5573 GB, free: 3.684 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.247e-06/0.1428, allocations: 3.938 kB / 0.5574 GB, free: 3.68 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001057/0.1429, allocations: 51.47 kB / 0.5574 GB, free: 3.617 MB / 414.1 MB Notification: Performance of pre-optimization done (n=3): time 1.242e-06/0.1429, allocations: 4 kB / 0.5574 GB, free: 3.613 MB / 414.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001638/0.1431, allocations: 57.64 kB / 0.5575 GB, free: 3.551 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.1431, allocations: 51.41 kB / 0.5575 GB, free: 3.488 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001024/0.1432, allocations: 117.8 kB / 0.5576 GB, free: 3.363 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.1432, allocations: 33.62 kB / 0.5577 GB, free: 3.324 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.64e-05/0.1433, allocations: 92.09 kB / 0.5577 GB, free: 3.23 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.317e-05/0.1433, allocations: 3.953 kB / 0.5577 GB, free: 3.227 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.451e-05/0.1433, allocations: 18.09 kB / 0.5578 GB, free: 3.203 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.1435, allocations: 326.8 kB / 0.5581 GB, free: 2.875 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.768e-05/0.1435, allocations: 4 kB / 0.5581 GB, free: 2.871 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.91e-05/0.1435, allocations: 17.72 kB / 0.5581 GB, free: 2.848 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.41e-05/0.1435, allocations: 33.64 kB / 0.5581 GB, free: 2.809 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1435, allocations: 0 / 0.5581 GB, free: 2.809 MB / 414.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.057e-05/0.1436, allocations: 49.64 kB / 0.5582 GB, free: 2.754 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.619e-05/0.1436, allocations: 7.984 kB / 0.5582 GB, free: 2.746 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.1436, allocations: 4.031 kB / 0.5582 GB, free: 2.742 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.1437, allocations: 0 / 0.5582 GB, free: 2.742 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.329e-05/0.1437, allocations: 4 kB / 0.5582 GB, free: 2.738 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.1437, allocations: 0 / 0.5582 GB, free: 2.738 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.447e-05/0.1437, allocations: 11.89 kB / 0.5582 GB, free: 2.727 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.839e-06/0.1437, allocations: 0 / 0.5582 GB, free: 2.727 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 9.01e-05/0.1438, allocations: 121.8 kB / 0.5583 GB, free: 2.598 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.387e-06/0.1438, allocations: 0 / 0.5583 GB, free: 2.598 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.772e-05/0.1439, allocations: 15.89 kB / 0.5583 GB, free: 2.578 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.253e-06/0.1439, allocations: 4 kB / 0.5583 GB, free: 2.574 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.1439, allocations: 0 / 0.5583 GB, free: 2.574 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.1439, allocations: 3.938 kB / 0.5583 GB, free: 2.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003129/0.1442, allocations: 294.6 kB / 0.5586 GB, free: 2.227 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.1442, allocations: 384 / 0.5586 GB, free: 2.227 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.254e-05/0.1442, allocations: 3.984 kB / 0.5586 GB, free: 2.223 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1442, allocations: 0 / 0.5586 GB, free: 2.223 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/0.1442, allocations: 11.88 kB / 0.5586 GB, free: 2.211 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1442, allocations: 0 / 0.5586 GB, free: 2.211 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1442, allocations: 0 / 0.5586 GB, free: 2.211 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001484/0.1444, allocations: 151.5 kB / 0.5588 GB, free: 2.047 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.196e-05/0.1444, allocations: 81.06 kB / 0.5589 GB, free: 1.949 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.743e-05/0.1445, allocations: 7.969 kB / 0.5589 GB, free: 1.941 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.551e-05/0.1445, allocations: 3.984 kB / 0.5589 GB, free: 1.938 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.124e-05/0.1445, allocations: 4 kB / 0.5589 GB, free: 1.934 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.943e-06/0.1446, allocations: 4 kB / 0.5589 GB, free: 1.93 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.631e-05/0.1446, allocations: 95.2 kB / 0.559 GB, free: 1.836 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1446, allocations: 4.062 kB / 0.559 GB, free: 1.832 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002118/0.1448, allocations: 4 kB / 0.559 GB, free: 1.828 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.0004711/0.1453, allocations: 0.6776 MB / 0.5596 GB, free: 1.125 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.034e-05/0.1454, allocations: 19.92 kB / 0.5597 GB, free: 1.105 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1454, allocations: 4.062 kB / 0.5597 GB, free: 1.102 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.367e-05/0.1454, allocations: 19.94 kB / 0.5597 GB, free: 1.082 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002713/0.1457, allocations: 17.64 kB / 0.5597 GB, free: 1.066 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001298/0.147, allocations: 1.277 MB / 0.5609 GB, free: 15.71 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.1473, allocations: 0.6846 MB / 0.5616 GB, free: 15 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 2.214e-05/0.1473, allocations: 4 kB / 0.5616 GB, free: 14.99 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.798e-05/0.1474, allocations: 15.44 kB / 0.5616 GB, free: 14.98 MB / 430.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1474, allocations: 0 / 0.5616 GB, free: 14.98 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0306/0.178, allocations: 1.551 MB / 0.5631 GB, free: 13.5 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.932/8.11, allocations: 6.406 kB / 0.5632 GB, free: 13.5 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.252897762009525]