Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008002/0.0008002, allocations: 175.6 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.136/1.136, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007299/0.0007301, allocations: 92.97 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2767/0.2767, allocations: 43.56 MB / 363.1 MB, free: 51.91 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003226/0.0003226, allocations: 20 kB / 432.1 MB, free: 5.504 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08705/0.08739, allocations: 58.84 MB / 490.9 MB, free: 10.58 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.001532/0.08896, allocations: 1.31 MB / 492.2 MB, free: 9.258 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007593/0.08973, allocations: 0.5622 MB / 492.8 MB, free: 8.688 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.695e-05/0.08981, allocations: 4 kB / 492.8 MB, free: 8.684 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.741e-05/0.0899, allocations: 7.922 kB / 492.8 MB, free: 8.676 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.145e-05/0.08995, allocations: 7.875 kB / 492.8 MB, free: 8.668 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002803/0.09024, allocations: 75.91 kB / 492.9 MB, free: 8.594 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001318/0.09038, allocations: 99.69 kB / 493 MB, free: 8.496 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001005/0.09049, allocations: 40.22 kB / 493 MB, free: 8.457 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.692e-05/0.09055, allocations: 35.84 kB / 493.1 MB, free: 8.422 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.611e-05/0.09061, allocations: 35.78 kB / 493.1 MB, free: 8.387 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.77e-05/0.09064, allocations: 4 kB / 493.1 MB, free: 8.383 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.248e-05/0.09066, allocations: 4 kB / 493.1 MB, free: 8.379 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.994e-05/0.09068, allocations: 11.92 kB / 493.1 MB, free: 8.367 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.606e-05/0.09075, allocations: 65.48 kB / 493.2 MB, free: 8.297 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 7.627e-05/0.09084, allocations: 51.84 kB / 493.2 MB, free: 8.246 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.09085, allocations: 0 / 493.2 MB, free: 8.246 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.09085, allocations: 0 / 493.2 MB, free: 8.246 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.386e-06/0.09086, allocations: 4 kB / 493.2 MB, free: 8.242 MB / 378.7 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.0005313/0.0914, allocations: 410.7 kB / 493.6 MB, free: 7.797 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.09144, allocations: 8.031 kB / 493.6 MB, free: 7.789 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.337e-05/0.09149, allocations: 46.67 kB / 493.7 MB, free: 7.734 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.986e-05/0.09153, allocations: 16.84 kB / 493.7 MB, free: 7.719 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001775/0.09171, allocations: 199.9 kB / 493.9 MB, free: 7.488 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.09173, allocations: 8.375 kB / 493.9 MB, free: 7.48 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.685e-05/0.09176, allocations: 8.312 kB / 493.9 MB, free: 7.473 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002623/0.09203, allocations: 113.8 kB / 494 MB, free: 7.355 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.09204, allocations: 0 / 494 MB, free: 7.355 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.09206, allocations: 4 kB / 494 MB, free: 7.352 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.09207, allocations: 0 / 494 MB, free: 7.352 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001521/0.09222, allocations: 59.89 kB / 494.1 MB, free: 7.293 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006143/0.09285, allocations: 404.4 kB / 494.5 MB, free: 6.848 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003175/0.09318, allocations: 118.5 kB / 494.6 MB, free: 6.723 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.0933, allocations: 40.91 kB / 494.6 MB, free: 6.68 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.055e-05/0.09332, allocations: 4 kB / 494.6 MB, free: 6.676 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002531/0.09358, allocations: 103.4 kB / 494.7 MB, free: 6.562 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.09359, allocations: 0 / 494.7 MB, free: 6.562 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.000421/0.09402, allocations: 157.4 kB / 494.9 MB, free: 6.402 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.09406, allocations: 51.41 kB / 494.9 MB, free: 6.34 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.09418, allocations: 153.8 kB / 495.1 MB, free: 6.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.0942, allocations: 25.7 kB / 495.1 MB, free: 6.148 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.911e-05/0.09426, allocations: 108 kB / 495.2 MB, free: 6.039 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.956e-05/0.09428, allocations: 15.78 kB / 495.2 MB, free: 6.023 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.434e-06/0.09429, allocations: 4 kB / 495.2 MB, free: 6.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.833e-05/0.0944, allocations: 322.8 kB / 495.6 MB, free: 5.695 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.09452, allocations: 35.98 kB / 495.6 MB, free: 5.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001187/0.09464, allocations: 61.62 kB / 495.7 MB, free: 5.594 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002083/0.09486, allocations: 89.61 kB / 495.7 MB, free: 5.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.09487, allocations: 0 / 495.7 MB, free: 5.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002769/0.09515, allocations: 121.5 kB / 495.9 MB, free: 5.375 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.09517, allocations: 11.94 kB / 495.9 MB, free: 5.363 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-06/0.09518, allocations: 0 / 495.9 MB, free: 5.363 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.668e-06/0.09519, allocations: 0 / 495.9 MB, free: 5.363 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.124e-05/0.09529, allocations: 23.92 kB / 495.9 MB, free: 5.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.0953, allocations: 4.312 kB / 495.9 MB, free: 5.336 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.122e-05/0.0954, allocations: 27.97 kB / 495.9 MB, free: 5.309 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.734e-06/0.09541, allocations: 4 kB / 495.9 MB, free: 5.305 MB / 378.7 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,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.change.u,change.u) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.895e-05/0.0955, allocations: 113.8 kB / 496 MB, free: 5.184 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.644e-05/0.09552, allocations: 11.84 kB / 496.1 MB, free: 5.172 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.297e-05/0.09556, allocations: 28.64 kB / 496.1 MB, free: 5.148 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.09556, allocations: 0 / 496.1 MB, free: 5.148 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.09557, allocations: 0 / 496.1 MB, free: 5.148 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.09558, allocations: 0 / 496.1 MB, free: 5.148 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004564/0.09604, allocations: 410.4 kB / 496.5 MB, free: 4.691 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.09605, allocations: 3.984 kB / 496.5 MB, free: 4.688 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.92e-05/0.09614, allocations: 16 kB / 496.5 MB, free: 4.672 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.09615, allocations: 0 / 496.5 MB, free: 4.672 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.09616, allocations: 0 / 496.5 MB, free: 4.672 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.09616, allocations: 0 / 496.5 MB, free: 4.672 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.935e-06/0.09617, allocations: 3.984 kB / 496.5 MB, free: 4.668 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004114/0.09659, allocations: 267.2 kB / 496.8 MB, free: 4.391 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.285e-05/0.09664, allocations: 81.02 kB / 496.8 MB, free: 4.293 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/0.09666, allocations: 8.312 kB / 496.9 MB, free: 4.285 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.0968, allocations: 28.03 kB / 496.9 MB, free: 4.258 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.485e-05/0.09686, allocations: 7.984 kB / 496.9 MB, free: 4.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-06/0.09687, allocations: 11.94 kB / 496.9 MB, free: 4.238 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.934e-05/0.09694, allocations: 107.2 kB / 497 MB, free: 4.133 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.09694, allocations: 0 / 497 MB, free: 4.133 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002017/0.09715, allocations: 20 kB / 497 MB, free: 4.113 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006334/0.09779, allocations: 0.802 MB / 497.8 MB, free: 3.281 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002519/0.09805, allocations: 92.02 kB / 497.9 MB, free: 3.191 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.09806, allocations: 0 / 497.9 MB, free: 3.191 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001324/0.0982, allocations: 43.91 kB / 498 MB, free: 3.148 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002687/0.09848, allocations: 15.98 kB / 498 MB, free: 3.133 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001174/0.09966, allocations: 0.7481 MB / 498.7 MB, free: 2.328 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002202/0.09989, allocations: 0.7042 MB / 499.4 MB, free: 1.598 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.59e-05/0.09996, allocations: 27.44 kB / 499.5 MB, free: 1.57 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.09996, allocations: 0 / 499.5 MB, free: 1.57 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.483/2.583, allocations: 1.615 MB / 0.4893 GB, free: 42.42 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_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","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches