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.001712/0.001712, allocations: 119.6 kB / 17.83 MB, free: 5.203 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.001916/0.001916, allocations: 210.3 kB / 20.8 MB, free: 2.258 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.483/1.483, allocations: 207.6 MB / 231.2 MB, free: 4.121 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.3171/0.3171, allocations: 44.23 MB / 327.3 MB, free: 6.707 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator",fmuType="cs",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.002238/0.002238, allocations: 71.91 kB / 462.9 MB, free: 0.9102 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2572/0.2594, allocations: 61 MB / 0.5116 GB, free: 13.23 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002382/0.2618, allocations: 1.638 MB / 0.5132 GB, free: 11.95 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008147/0.2626, allocations: 0.6033 MB / 0.5138 GB, free: 11.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.055e-05/0.2627, allocations: 10.16 kB / 0.5138 GB, free: 11.47 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001203/0.2628, allocations: 7.875 kB / 0.5138 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 4.623e-05/0.2628, allocations: 18 kB / 0.5138 GB, free: 11.45 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003172/0.2632, allocations: 85.97 kB / 0.5139 GB, free: 11.38 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001427/0.2633, allocations: 121.7 kB / 0.514 GB, free: 11.31 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.714e-05/0.2634, allocations: 28.34 kB / 0.5141 GB, free: 11.29 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.825e-05/0.2635, allocations: 50.03 kB / 0.5141 GB, free: 11.26 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.14e-05/0.2635, allocations: 44.11 kB / 0.5142 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.495e-05/0.2636, allocations: 8.344 kB / 0.5142 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.461e-05/0.2636, allocations: 12.88 kB / 0.5142 GB, free: 11.22 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.146e-05/0.2636, allocations: 13.83 kB / 0.5142 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.774e-05/0.2636, allocations: 45.45 kB / 0.5142 GB, free: 11.17 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00014/0.2638, allocations: 91.33 kB / 0.5143 GB, free: 11.11 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.2638, allocations: 4 kB / 0.5143 GB, free: 11.11 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2638, allocations: 0 / 0.5143 GB, free: 11.11 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.067e-05/0.2638, allocations: 0 / 0.5143 GB, free: 11.11 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.0005595/0.2644, allocations: 416.9 kB / 0.5147 GB, free: 10.69 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.2644, allocations: 14.36 kB / 0.5147 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.381e-05/0.2644, allocations: 1.719 kB / 0.5147 GB, free: 10.69 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.373e-05/0.2644, allocations: 36.16 kB / 0.5148 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.197e-05/0.2645, allocations: 10.77 kB / 0.5148 GB, free: 10.64 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002335/0.2647, allocations: 205.9 kB / 0.515 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.2647, allocations: 7.531 kB / 0.515 GB, free: 10.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.783e-05/0.2647, allocations: 13.25 kB / 0.515 GB, free: 10.4 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000296/0.265, allocations: 100.4 kB / 0.5151 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.2651, allocations: 1.469 kB / 0.5151 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.2651, allocations: 0 / 0.5151 GB, free: 10.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.2651, allocations: 5.469 kB / 0.5151 GB, free: 10.33 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001778/0.2653, allocations: 58.81 kB / 0.5152 GB, free: 10.3 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006077/0.2659, allocations: 388.3 kB / 0.5155 GB, free: 9.938 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003729/0.2662, allocations: 102.2 kB / 0.5156 GB, free: 9.879 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001129/0.2663, allocations: 34.75 kB / 0.5157 GB, free: 9.859 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.691e-05/0.2664, allocations: 0 / 0.5157 GB, free: 9.859 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002666/0.2666, allocations: 108.3 kB / 0.5158 GB, free: 9.773 MB / 382.1 MB Notification: Performance of pre-optimization done (n=7): time 1.633e-06/0.2666, allocations: 0 / 0.5158 GB, free: 9.773 MB / 382.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004697/0.2671, allocations: 143.6 kB / 0.5159 GB, free: 9.695 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.568e-05/0.2671, allocations: 52.78 kB / 0.516 GB, free: 9.633 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.2672, allocations: 150.6 kB / 0.5161 GB, free: 9.504 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.268e-05/0.2672, allocations: 27.08 kB / 0.5161 GB, free: 9.473 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.66e-05/0.2673, allocations: 96.27 kB / 0.5162 GB, free: 9.379 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.309e-05/0.2673, allocations: 30.66 kB / 0.5162 GB, free: 9.352 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-05/0.2673, allocations: 25.91 kB / 0.5163 GB, free: 9.328 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.764e-05/0.2674, allocations: 325.6 kB / 0.5166 GB, free: 9.004 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.2675, allocations: 36.59 kB / 0.5166 GB, free: 8.988 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001256/0.2676, allocations: 49.06 kB / 0.5167 GB, free: 8.957 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002129/0.2679, allocations: 77.09 kB / 0.5167 GB, free: 8.914 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2679, allocations: 0 / 0.5167 GB, free: 8.914 MB / 382.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002917/0.2682, allocations: 130.3 kB / 0.5169 GB, free: 8.836 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.2682, allocations: 5.219 kB / 0.5169 GB, free: 8.836 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.2682, allocations: 4 kB / 0.5169 GB, free: 8.832 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.2682, allocations: 1.531 kB / 0.5169 GB, free: 8.832 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.2683, allocations: 15.58 kB / 0.5169 GB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.2683, allocations: 2.188 kB / 0.5169 GB, free: 8.828 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.542e-05/0.2684, allocations: 24.97 kB / 0.5169 GB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-06/0.2684, allocations: 2.562 kB / 0.5169 GB, free: 8.812 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 6.22e-05/0.2685, allocations: 118.7 kB / 0.517 GB, free: 8.691 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.002e-05/0.2685, allocations: 17.33 kB / 0.517 GB, free: 8.68 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.629e-05/0.2685, allocations: 15.25 kB / 0.5171 GB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.2685, allocations: 0 / 0.5171 GB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2685, allocations: 1.219 kB / 0.5171 GB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.2685, allocations: 3.984 kB / 0.5171 GB, free: 8.66 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004576/0.269, allocations: 397.8 kB / 0.5174 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.269, allocations: 0 / 0.5174 GB, free: 8.281 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.784e-05/0.2691, allocations: 13.11 kB / 0.5175 GB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.2691, allocations: 1.188 kB / 0.5175 GB, free: 8.277 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.2691, allocations: 5.031 kB / 0.5175 GB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2691, allocations: 0 / 0.5175 GB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.2691, allocations: 1.219 kB / 0.5175 GB, free: 8.273 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004469/0.2695, allocations: 254 kB / 0.5177 GB, free: 8.082 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.565e-05/0.2696, allocations: 86.45 kB / 0.5178 GB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.905e-05/0.2696, allocations: 1.406 kB / 0.5178 GB, free: 7.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001448/0.2697, allocations: 23.27 kB / 0.5178 GB, free: 7.969 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.242e-05/0.2698, allocations: 14.88 kB / 0.5178 GB, free: 7.961 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.955e-06/0.2698, allocations: 1.281 kB / 0.5178 GB, free: 7.961 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.364e-05/0.2699, allocations: 110.4 kB / 0.5179 GB, free: 7.871 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2699, allocations: 1.25 kB / 0.5179 GB, free: 7.871 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002434/0.2701, allocations: 21.22 kB / 0.5179 GB, free: 7.863 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.0006419/0.2707, allocations: 0.7807 MB / 0.5187 GB, free: 7.145 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0003025/0.271, allocations: 85.31 kB / 0.5188 GB, free: 7.109 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.2711, allocations: 0 / 0.5188 GB, free: 7.109 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.2712, allocations: 42.09 kB / 0.5188 GB, free: 7.094 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003138/0.2715, allocations: 17.61 kB / 0.5188 GB, free: 7.086 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001759/0.2733, allocations: 1.648 MB / 0.5205 GB, free: 5.457 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00011/0.2734, allocations: 0.7002 MB / 0.5211 GB, free: 4.73 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.423e-05/0.2734, allocations: 12.55 kB / 0.5212 GB, free: 4.715 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.09e-05/0.2735, allocations: 35.42 kB / 0.5212 GB, free: 4.68 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2735, allocations: 0 / 0.5212 GB, free: 4.68 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0196/0.2931, allocations: 2.686 MB / 0.5238 GB, free: 1.996 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.833/9.126, allocations: 20.5 kB / 0.5238 GB, free: 1.977 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 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.mat","/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: 12.219056491041556]