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.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.001674/0.001674, allocations: 114.4 kB / 17.12 MB, free: 5.891 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.002244/0.002244, allocations: 211.2 kB / 20.09 MB, free: 2.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.526/1.526, allocations: 207.6 MB / 230.5 MB, free: 4.008 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3284/0.3284, allocations: 44.23 MB / 326.6 MB, free: 6.824 MB / 254.1 MB " [Timeout remaining time 180] 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.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.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002422/0.002422, allocations: 67.89 kB / 462.2 MB, free: 0.9023 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2737/0.2761, allocations: 61 MB / 0.5109 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002368/0.2785, allocations: 1.638 MB / 0.5125 GB, free: 11.92 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007957/0.2793, allocations: 0.5949 MB / 0.5131 GB, free: 11.45 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.876e-05/0.2794, allocations: 5.656 kB / 0.5131 GB, free: 11.45 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001074/0.2795, allocations: 11.86 kB / 0.5131 GB, free: 11.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.506e-05/0.2795, allocations: 17.48 kB / 0.5132 GB, free: 11.42 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002863/0.2798, allocations: 97.22 kB / 0.5132 GB, free: 11.34 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001313/0.2799, allocations: 113.5 kB / 0.5134 GB, free: 11.28 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.479e-05/0.28, allocations: 31.53 kB / 0.5134 GB, free: 11.25 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.588e-05/0.2801, allocations: 49.59 kB / 0.5134 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.999e-05/0.2802, allocations: 48.56 kB / 0.5135 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.547e-05/0.2802, allocations: 9.219 kB / 0.5135 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.626e-05/0.2802, allocations: 7.906 kB / 0.5135 GB, free: 11.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.016e-05/0.2802, allocations: 18.7 kB / 0.5135 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.26e-05/0.2803, allocations: 40.27 kB / 0.5135 GB, free: 11.14 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001247/0.2804, allocations: 91.69 kB / 0.5136 GB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.2804, allocations: 0 / 0.5136 GB, free: 11.07 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2804, allocations: 4 kB / 0.5136 GB, free: 11.07 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.207e-06/0.2804, allocations: 0 / 0.5136 GB, free: 11.07 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.0005144/0.2809, allocations: 417.3 kB / 0.514 GB, free: 10.66 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.25e-05/0.281, allocations: 12.77 kB / 0.5141 GB, free: 10.65 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.578e-05/0.281, allocations: 37.39 kB / 0.5141 GB, free: 10.61 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.264e-05/0.281, allocations: 14.89 kB / 0.5141 GB, free: 10.6 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001934/0.2812, allocations: 202 kB / 0.5143 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.803e-05/0.2812, allocations: 8.25 kB / 0.5143 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.401e-05/0.2813, allocations: 4.469 kB / 0.5143 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002506/0.2815, allocations: 108.8 kB / 0.5144 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/0.2815, allocations: 0 / 0.5144 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.437e-05/0.2815, allocations: 5.062 kB / 0.5144 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.2815, allocations: 5.375 kB / 0.5144 GB, free: 10.29 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001528/0.2817, allocations: 49.84 kB / 0.5145 GB, free: 10.27 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005815/0.2823, allocations: 396.5 kB / 0.5148 GB, free: 9.898 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003306/0.2826, allocations: 98.67 kB / 0.5149 GB, free: 9.844 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.2827, allocations: 38.67 kB / 0.515 GB, free: 9.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.448e-05/0.2827, allocations: 0 / 0.515 GB, free: 9.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002259/0.2829, allocations: 101.1 kB / 0.5151 GB, free: 9.742 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.2829, allocations: 0 / 0.5151 GB, free: 9.742 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004207/0.2834, allocations: 143.4 kB / 0.5152 GB, free: 9.664 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.566e-05/0.2834, allocations: 56.77 kB / 0.5153 GB, free: 9.598 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.438e-05/0.2835, allocations: 146.7 kB / 0.5154 GB, free: 9.473 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.24e-05/0.2835, allocations: 31.08 kB / 0.5154 GB, free: 9.438 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.729e-05/0.2835, allocations: 104.2 kB / 0.5155 GB, free: 9.336 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.074e-05/0.2836, allocations: 22.67 kB / 0.5156 GB, free: 9.316 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.812e-05/0.2836, allocations: 29.95 kB / 0.5156 GB, free: 9.289 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.083e-05/0.2836, allocations: 321.6 kB / 0.5159 GB, free: 8.969 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001174/0.2838, allocations: 36.55 kB / 0.5159 GB, free: 8.953 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001155/0.2839, allocations: 53.06 kB / 0.516 GB, free: 8.918 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002108/0.2841, allocations: 77.67 kB / 0.516 GB, free: 8.875 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.2841, allocations: 0 / 0.516 GB, free: 8.875 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002628/0.2843, allocations: 125.9 kB / 0.5162 GB, free: 8.801 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.3e-05/0.2844, allocations: 8.062 kB / 0.5162 GB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.2844, allocations: 1.375 kB / 0.5162 GB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.2844, allocations: 1.375 kB / 0.5162 GB, free: 8.797 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.76e-05/0.2845, allocations: 14.98 kB / 0.5162 GB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.2845, allocations: 1.375 kB / 0.5162 GB, free: 8.793 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.301e-05/0.2846, allocations: 21.59 kB / 0.5162 GB, free: 8.781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.2846, allocations: 6.75 kB / 0.5162 GB, free: 8.777 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 5.998e-05/0.2846, allocations: 118 kB / 0.5163 GB, free: 8.656 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.808e-05/0.2847, allocations: 13.39 kB / 0.5163 GB, free: 8.648 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.35e-05/0.2847, allocations: 15.45 kB / 0.5164 GB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.2847, allocations: 0 / 0.5164 GB, free: 8.633 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.2847, allocations: 5.312 kB / 0.5164 GB, free: 8.629 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.2847, allocations: 4 kB / 0.5164 GB, free: 8.625 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004136/0.2851, allocations: 398.1 kB / 0.5167 GB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2851, allocations: 0 / 0.5167 GB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.238e-05/0.2852, allocations: 9.031 kB / 0.5168 GB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.2852, allocations: 1.625 kB / 0.5168 GB, free: 8.246 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.2852, allocations: 8 kB / 0.5168 GB, free: 8.238 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.235e-06/0.2852, allocations: 5.422 kB / 0.5168 GB, free: 8.234 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.2852, allocations: 3.938 kB / 0.5168 GB, free: 8.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004029/0.2856, allocations: 245.5 kB / 0.517 GB, free: 8.047 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.446e-05/0.2856, allocations: 87.88 kB / 0.5171 GB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.8e-05/0.2857, allocations: 1.375 kB / 0.5171 GB, free: 7.945 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001388/0.2858, allocations: 18.25 kB / 0.5171 GB, free: 7.938 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.991e-05/0.2858, allocations: 14.39 kB / 0.5171 GB, free: 7.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.594e-06/0.2859, allocations: 2.375 kB / 0.5171 GB, free: 7.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.626e-05/0.2859, allocations: 114.1 kB / 0.5172 GB, free: 7.836 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2859, allocations: 5.125 kB / 0.5172 GB, free: 7.832 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002322/0.2861, allocations: 17.69 kB / 0.5173 GB, free: 7.828 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.000552/0.2867, allocations: 0.7844 MB / 0.518 GB, free: 7.105 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002797/0.287, allocations: 85.64 kB / 0.5181 GB, free: 7.07 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.287, allocations: 0 / 0.5181 GB, free: 7.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001316/0.2871, allocations: 38.33 kB / 0.5181 GB, free: 7.059 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003059/0.2874, allocations: 20.05 kB / 0.5182 GB, free: 7.047 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001567/0.289, allocations: 1.646 MB / 0.5198 GB, free: 5.449 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.442e-05/0.2891, allocations: 0.6963 MB / 0.5205 GB, free: 4.727 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.147e-05/0.2891, allocations: 12.55 kB / 0.5205 GB, free: 4.711 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.146e-05/0.2892, allocations: 27.42 kB / 0.5205 GB, free: 4.684 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2892, allocations: 0 / 0.5205 GB, free: 4.684 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02426/0.3134, allocations: 2.656 MB / 0.5231 GB, free: 2.027 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.223/8.537, allocations: 16.59 kB / 0.5231 GB, free: 2.012 MB / 382.1 MB " [Timeout remaining time 651] (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.000995025 ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.488837184995646]