Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.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.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.SelfResettingIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator",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.001253/0.001253, allocations: 103 kB / 16.27 MB, free: 5.93 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.001284/0.001284, allocations: 190.1 kB / 17.2 MB, free: 5.574 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.513/1.513, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.2351/0.2351, allocations: 43.52 MB / 313.9 MB, free: 0.5273 MB / 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.00143/0.00143, allocations: 75.42 kB / 382.8 MB, free: 56.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1149/0.1164, allocations: 57.79 MB / 440.6 MB, free: 6.801 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002126/0.1186, allocations: 0.8076 MB / 441.4 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002066/0.1188, allocations: 43.88 kB / 441.5 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.556e-05/0.1189, allocations: 0 / 441.5 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.119, allocations: 15.86 kB / 441.5 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 1.98e-05/0.119, allocations: 7.938 kB / 441.5 MB, free: 5.918 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001201/0.1192, allocations: 15.98 kB / 441.5 MB, free: 5.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.493e-05/0.1193, allocations: 35.86 kB / 441.5 MB, free: 5.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.1194, allocations: 23.92 kB / 441.6 MB, free: 5.844 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.713e-05/0.1194, allocations: 15.92 kB / 441.6 MB, free: 5.828 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.821e-05/0.1195, allocations: 15.92 kB / 441.6 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.742e-05/0.1195, allocations: 4 kB / 441.6 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.11e-05/0.1195, allocations: 4 kB / 441.6 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.8e-05/0.1195, allocations: 7.938 kB / 441.6 MB, free: 5.797 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.455e-05/0.1196, allocations: 15.92 kB / 441.6 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.801e-05/0.1197, allocations: 35.84 kB / 441.7 MB, free: 5.746 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1197, allocations: 3.938 kB / 441.7 MB, free: 5.742 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.552e-06/0.1197, allocations: 0 / 441.7 MB, free: 5.742 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.1197, allocations: 0 / 441.7 MB, free: 5.742 MB / 318.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.0004149/0.1201, allocations: 359.4 kB / 442 MB, free: 5.34 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.1202, allocations: 11.89 kB / 442 MB, free: 5.328 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.714e-05/0.1202, allocations: 34.75 kB / 442.1 MB, free: 5.285 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.652e-05/0.1202, allocations: 8.844 kB / 442.1 MB, free: 5.277 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001436/0.1204, allocations: 180.2 kB / 442.2 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.1204, allocations: 4.359 kB / 442.3 MB, free: 5.059 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.315e-05/0.1204, allocations: 8.375 kB / 442.3 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001076/0.1206, allocations: 50.25 kB / 442.3 MB, free: 4.996 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.1206, allocations: 7.938 kB / 442.3 MB, free: 4.988 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.756e-06/0.1206, allocations: 0 / 442.3 MB, free: 4.988 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.1206, allocations: 0 / 442.3 MB, free: 4.988 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.232e-05/0.1206, allocations: 12 kB / 442.3 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004286/0.1211, allocations: 292.7 kB / 442.6 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.35e-05/0.1211, allocations: 22.56 kB / 442.6 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.768e-05/0.1212, allocations: 19.22 kB / 442.7 MB, free: 4.59 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.821e-06/0.1212, allocations: 0 / 442.7 MB, free: 4.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.514e-05/0.1212, allocations: 51.34 kB / 442.7 MB, free: 4.527 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.1213, allocations: 4 kB / 442.7 MB, free: 4.523 MB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001329/0.1214, allocations: 49.59 kB / 442.8 MB, free: 4.469 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.298e-05/0.1214, allocations: 51.41 kB / 442.8 MB, free: 4.406 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.114e-05/0.1215, allocations: 121.8 kB / 442.9 MB, free: 4.277 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.806e-06/0.1215, allocations: 25.7 kB / 443 MB, free: 4.246 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.115e-05/0.1215, allocations: 92.2 kB / 443 MB, free: 4.152 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.249e-05/0.1216, allocations: 11.84 kB / 443.1 MB, free: 4.141 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.656e-05/0.1216, allocations: 21.7 kB / 443.1 MB, free: 4.113 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.309e-05/0.1217, allocations: 318.8 kB / 443.4 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.76e-05/0.1217, allocations: 4 kB / 443.4 MB, free: 3.789 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.213e-05/0.1217, allocations: 25.64 kB / 443.4 MB, free: 3.758 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.295e-05/0.1217, allocations: 33.66 kB / 443.4 MB, free: 3.719 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.1217, allocations: 384 / 443.4 MB, free: 3.719 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.527e-05/0.1218, allocations: 61.53 kB / 443.5 MB, free: 3.652 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.023e-05/0.1218, allocations: 4 kB / 443.5 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.1218, allocations: 0 / 443.5 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.1219, allocations: 7.938 kB / 443.5 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.895e-05/0.1219, allocations: 4 kB / 443.5 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.1219, allocations: 0 / 443.5 MB, free: 3.637 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.814e-05/0.1219, allocations: 3.938 kB / 443.5 MB, free: 3.633 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.589e-06/0.1219, allocations: 8.031 kB / 443.5 MB, free: 3.625 MB / 318.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 5.114e-05/0.122, allocations: 113.8 kB / 443.6 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.083e-05/0.122, allocations: 7.906 kB / 443.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.09e-05/0.122, allocations: 7.891 kB / 443.7 MB, free: 3.484 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.122, allocations: 0 / 443.7 MB, free: 3.484 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.1221, allocations: 0 / 443.7 MB, free: 3.484 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1221, allocations: 7.938 kB / 443.7 MB, free: 3.477 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001985/0.1223, allocations: 294.5 kB / 444 MB, free: 3.133 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1223, allocations: 4 kB / 444 MB, free: 3.129 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.711e-05/0.1223, allocations: 4 kB / 444 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-06/0.1223, allocations: 0 / 444 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.107e-06/0.1223, allocations: 3.938 kB / 444 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.1223, allocations: 0 / 444 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1223, allocations: 384 / 444 MB, free: 3.121 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000108/0.1225, allocations: 159.4 kB / 444.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.091e-05/0.1225, allocations: 81.14 kB / 444.2 MB, free: 2.852 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.372e-05/0.1225, allocations: 7.984 kB / 444.2 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.279e-05/0.1226, allocations: 4 kB / 444.2 MB, free: 2.84 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.706e-05/0.1226, allocations: 4 kB / 444.2 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-06/0.1226, allocations: 0 / 444.2 MB, free: 2.836 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.216e-05/0.1226, allocations: 91.27 kB / 444.3 MB, free: 2.746 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1226, allocations: 0 / 444.3 MB, free: 2.746 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002123/0.1229, allocations: 8 kB / 444.3 MB, free: 2.738 MB / 318.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.0002497/0.1231, allocations: 0.685 MB / 445 MB, free: 2.023 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 8.091e-05/0.1232, allocations: 19.94 kB / 445 MB, free: 2.004 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.1232, allocations: 0 / 445 MB, free: 2.004 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.574e-05/0.1232, allocations: 7.938 kB / 445 MB, free: 1.996 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.1235, allocations: 32.44 kB / 445.1 MB, free: 1.969 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007827/0.1243, allocations: 1.28 MB / 446.3 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001402/0.1244, allocations: 0.6846 MB / 447 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.896e-05/0.1245, allocations: 4 kB / 447 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.332e-05/0.1245, allocations: 15.44 kB / 447 MB, free: 15.88 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1245, allocations: 0 / 447 MB, free: 15.88 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0206/0.1451, allocations: 1.533 MB / 448.6 MB, free: 14.35 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.606/7.751, allocations: 3.844 kB / 448.6 MB, free: 14.35 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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.002 ModelicaTest_3_2_3_ModelicaTest_Blocks_SelfResettingIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches