Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 107.2 kB / 16.41 MB, free: 6.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 192.2 kB / 17.34 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.749/1.749, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.228/0.228, allocations: 43.52 MB / 314.1 MB, free: 448 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 65.47 kB / 441.3 MB, free: 6.152 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1402/0.1419, allocations: 57.8 MB / 499.1 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003573/0.1455, allocations: 1.621 MB / 0.489 GB, free: 10.65 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.1468, allocations: 0.5892 MB / 0.4896 GB, free: 10.05 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001432/0.147, allocations: 7.938 kB / 0.4896 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001591/0.1471, allocations: 11.86 kB / 0.4896 GB, free: 10.03 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 8.468e-05/0.1472, allocations: 11.86 kB / 0.4896 GB, free: 10.02 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004493/0.1477, allocations: 95.77 kB / 0.4897 GB, free: 9.926 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002317/0.148, allocations: 115.7 kB / 0.4898 GB, free: 9.812 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.1481, allocations: 35.88 kB / 0.4898 GB, free: 9.777 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.1482, allocations: 47.78 kB / 0.4899 GB, free: 9.73 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.723e-05/0.1483, allocations: 47.81 kB / 0.4899 GB, free: 9.684 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.77e-05/0.1484, allocations: 8 kB / 0.4899 GB, free: 9.676 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.71e-05/0.1484, allocations: 8 kB / 0.4899 GB, free: 9.668 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 3.402e-05/0.1484, allocations: 15.92 kB / 0.4899 GB, free: 9.652 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.484e-05/0.1485, allocations: 47.73 kB / 0.49 GB, free: 9.605 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002026/0.1487, allocations: 91.58 kB / 0.4901 GB, free: 9.516 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.1487, allocations: 0 / 0.4901 GB, free: 9.516 MB / 382.1 MB Notification: Performance of FrontEnd: time 8.015e-06/0.1488, allocations: 3.984 kB / 0.4901 GB, free: 9.512 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.1488, allocations: 3.938 kB / 0.4901 GB, free: 9.508 MB / 382.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.1495, allocations: 407.1 kB / 0.4905 GB, free: 9.062 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.641e-05/0.1496, allocations: 11.89 kB / 0.4905 GB, free: 9.051 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.112e-05/0.1496, allocations: 46.73 kB / 0.4905 GB, free: 8.996 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.966e-05/0.1497, allocations: 8.891 kB / 0.4905 GB, free: 8.988 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003274/0.15, allocations: 208.2 kB / 0.4907 GB, free: 8.746 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.197e-05/0.15, allocations: 8.375 kB / 0.4907 GB, free: 8.738 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.325e-05/0.1501, allocations: 4.375 kB / 0.4907 GB, free: 8.734 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002956/0.1504, allocations: 109.5 kB / 0.4909 GB, free: 8.625 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.798e-06/0.1504, allocations: 4 kB / 0.4909 GB, free: 8.621 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.1504, allocations: 4 kB / 0.4909 GB, free: 8.617 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.1504, allocations: 4 kB / 0.4909 GB, free: 8.613 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001587/0.1506, allocations: 51.89 kB / 0.4909 GB, free: 8.562 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007744/0.1514, allocations: 392.5 kB / 0.4913 GB, free: 8.129 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003414/0.1517, allocations: 106.5 kB / 0.4914 GB, free: 8.016 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.1518, allocations: 36.88 kB / 0.4914 GB, free: 7.977 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.652e-05/0.1519, allocations: 4 kB / 0.4914 GB, free: 7.973 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002683/0.1521, allocations: 99.28 kB / 0.4915 GB, free: 7.863 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.643e-06/0.1522, allocations: 4 kB / 0.4915 GB, free: 7.859 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004755/0.1526, allocations: 141.5 kB / 0.4917 GB, free: 7.715 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.1527, allocations: 51.41 kB / 0.4917 GB, free: 7.652 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.1529, allocations: 153.8 kB / 0.4919 GB, free: 7.492 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.084e-05/0.1529, allocations: 29.7 kB / 0.4919 GB, free: 7.457 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.807e-05/0.153, allocations: 104.1 kB / 0.492 GB, free: 7.352 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.818e-05/0.153, allocations: 23.92 kB / 0.492 GB, free: 7.328 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-05/0.153, allocations: 25.72 kB / 0.492 GB, free: 7.297 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.1532, allocations: 318.8 kB / 0.4923 GB, free: 6.977 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001281/0.1533, allocations: 39.97 kB / 0.4924 GB, free: 6.938 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001216/0.1534, allocations: 53.64 kB / 0.4924 GB, free: 6.879 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002124/0.1537, allocations: 69.67 kB / 0.4925 GB, free: 6.805 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.1537, allocations: 8 kB / 0.4925 GB, free: 6.797 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002945/0.154, allocations: 117.5 kB / 0.4926 GB, free: 6.676 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.978e-05/0.154, allocations: 12.16 kB / 0.4926 GB, free: 6.664 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.601e-06/0.154, allocations: 0 / 0.4926 GB, free: 6.664 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.697e-05/0.1541, allocations: 0 / 0.4926 GB, free: 6.664 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001079/0.1542, allocations: 23.95 kB / 0.4926 GB, free: 6.641 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.595e-06/0.1542, allocations: 0 / 0.4926 GB, free: 6.641 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.775e-05/0.1543, allocations: 23.94 kB / 0.4927 GB, free: 6.617 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.1543, allocations: 4 kB / 0.4927 GB, free: 6.613 MB / 382.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.0001054/0.1544, allocations: 125.8 kB / 0.4928 GB, free: 6.48 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.092e-05/0.1544, allocations: 11.89 kB / 0.4928 GB, free: 6.469 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.9e-05/0.1545, allocations: 12.72 kB / 0.4928 GB, free: 6.453 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.1545, allocations: 4 kB / 0.4928 GB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1545, allocations: 0 / 0.4928 GB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.297e-06/0.1545, allocations: 0 / 0.4928 GB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005816/0.1551, allocations: 394.4 kB / 0.4932 GB, free: 6.008 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1551, allocations: 0 / 0.4932 GB, free: 6.008 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.454e-05/0.1552, allocations: 15.98 kB / 0.4932 GB, free: 5.992 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.1552, allocations: 3.938 kB / 0.4932 GB, free: 5.988 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.1552, allocations: 8 kB / 0.4932 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.1553, allocations: 0 / 0.4932 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1553, allocations: 0 / 0.4932 GB, free: 5.98 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004714/0.1557, allocations: 255.3 kB / 0.4935 GB, free: 5.715 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.161e-05/0.1558, allocations: 85.06 kB / 0.4935 GB, free: 5.613 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.496e-05/0.1558, allocations: 4 kB / 0.4935 GB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001352/0.156, allocations: 15.97 kB / 0.4936 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.837e-05/0.156, allocations: 15.98 kB / 0.4936 GB, free: 5.578 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/0.1561, allocations: 0 / 0.4936 GB, free: 5.578 MB / 382.1 MB Notification: Performance of sorting global known variables: time 8.669e-05/0.1562, allocations: 124 kB / 0.4937 GB, free: 5.457 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1562, allocations: 0 / 0.4937 GB, free: 5.457 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002431/0.1564, allocations: 15.94 kB / 0.4937 GB, free: 5.441 MB / 382.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.0007765/0.1572, allocations: 0.7826 MB / 0.4945 GB, free: 4.633 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003027/0.1575, allocations: 79.89 kB / 0.4946 GB, free: 4.555 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1575, allocations: 4.125 kB / 0.4946 GB, free: 4.551 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001396/0.1577, allocations: 43.97 kB / 0.4946 GB, free: 4.508 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003317/0.158, allocations: 19.53 kB / 0.4946 GB, free: 4.492 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002214/0.1602, allocations: 1.655 MB / 0.4962 GB, free: 2.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002982/0.1606, allocations: 0.7002 MB / 0.4969 GB, free: 2.023 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 5.572e-05/0.1606, allocations: 4.562 kB / 0.4969 GB, free: 2.016 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.221e-05/0.1607, allocations: 35.42 kB / 0.497 GB, free: 1.98 MB / 382.1 MB Notification: Performance of SimCode: time 8.32e-07/0.1607, allocations: 0 / 0.497 GB, free: 1.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02379/0.1845, allocations: 2.633 MB / 0.4995 GB, free: 15.34 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.826/8.011, allocations: 3.859 kB / 0.4995 GB, free: 15.34 MB / 398.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches