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.001085/0.001085, allocations: 106.9 kB / 15.98 MB, free: 5.906 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.000995/0.0009949, allocations: 188.7 kB / 16.9 MB, free: 5.758 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.385/1.385, allocations: 205.1 MB / 222.8 MB, free: 12.43 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.1819/0.1819, allocations: 43.52 MB / 313.6 MB, free: 0.6875 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.00128/0.00128, allocations: 69 kB / 382.3 MB, free: 56.9 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07451/0.0758, allocations: 57.79 MB / 440.1 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002061/0.07789, allocations: 1.678 MB / 441.8 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006166/0.07852, allocations: 0.5898 MB / 442.4 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.534e-05/0.0786, allocations: 0 / 442.4 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.411e-05/0.0787, allocations: 7.875 kB / 442.4 MB, free: 4.953 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.043e-05/0.07875, allocations: 19.91 kB / 442.4 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002451/0.079, allocations: 79.78 kB / 442.5 MB, free: 4.855 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001014/0.07911, allocations: 115.7 kB / 442.6 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.227e-05/0.07921, allocations: 31.97 kB / 442.6 MB, free: 4.711 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.039e-05/0.07927, allocations: 47.78 kB / 442.7 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.703e-05/0.07932, allocations: 39.83 kB / 442.7 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.501e-05/0.07934, allocations: 8 kB / 442.7 MB, free: 4.617 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.171e-05/0.07935, allocations: 8 kB / 442.7 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.81e-05/0.07938, allocations: 19.92 kB / 442.7 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.402e-05/0.07941, allocations: 43.73 kB / 442.8 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.75e-05/0.07951, allocations: 83.75 kB / 442.9 MB, free: 4.465 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.294e-06/0.07951, allocations: 4 kB / 442.9 MB, free: 4.461 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.07952, allocations: 0 / 442.9 MB, free: 4.461 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.07953, allocations: 4 kB / 442.9 MB, free: 4.457 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004233/0.07996, allocations: 403.1 kB / 443.3 MB, free: 4.016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.009e-05/0.07999, allocations: 19.81 kB / 443.3 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.929e-05/0.08003, allocations: 42.69 kB / 443.3 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.545e-05/0.08006, allocations: 12.84 kB / 443.3 MB, free: 3.934 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001237/0.08019, allocations: 204.1 kB / 443.5 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.432e-05/0.08021, allocations: 4.375 kB / 443.5 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.859e-05/0.08023, allocations: 12.28 kB / 443.6 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002151/0.08045, allocations: 105.8 kB / 443.7 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.08046, allocations: 0 / 443.7 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.818e-06/0.08048, allocations: 4 kB / 443.7 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.08049, allocations: 4 kB / 443.7 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000127/0.08062, allocations: 51.91 kB / 443.7 MB, free: 3.512 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004744/0.0811, allocations: 388.5 kB / 444.1 MB, free: 3.082 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002748/0.08139, allocations: 98.52 kB / 444.2 MB, free: 2.977 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.772e-05/0.08148, allocations: 32.92 kB / 444.2 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.639e-06/0.0815, allocations: 4 kB / 444.2 MB, free: 2.938 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002065/0.08171, allocations: 99.34 kB / 444.3 MB, free: 2.828 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.813e-06/0.08172, allocations: 4 kB / 444.3 MB, free: 2.824 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003517/0.08208, allocations: 145.3 kB / 444.5 MB, free: 2.676 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.991e-05/0.0821, allocations: 51.41 kB / 444.5 MB, free: 2.613 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.784e-05/0.08219, allocations: 149.8 kB / 444.7 MB, free: 2.457 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.211e-05/0.08221, allocations: 33.7 kB / 444.7 MB, free: 2.418 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.891e-05/0.08224, allocations: 96.12 kB / 444.8 MB, free: 2.32 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.736e-05/0.08226, allocations: 23.8 kB / 444.8 MB, free: 2.297 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.386e-05/0.0823, allocations: 29.7 kB / 444.8 MB, free: 2.262 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.439e-05/0.08234, allocations: 318.8 kB / 445.2 MB, free: 1.941 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.84e-05/0.08244, allocations: 35.98 kB / 445.2 MB, free: 1.906 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.613e-05/0.08255, allocations: 57.62 kB / 445.2 MB, free: 1.844 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001612/0.08271, allocations: 69.67 kB / 445.3 MB, free: 1.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.08272, allocations: 8 kB / 445.3 MB, free: 1.762 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002177/0.08295, allocations: 121.6 kB / 445.4 MB, free: 1.637 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.042e-05/0.08296, allocations: 7.938 kB / 445.4 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.146e-06/0.08297, allocations: 0 / 445.4 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.137e-06/0.08298, allocations: 0 / 445.4 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.265e-05/0.08307, allocations: 19.92 kB / 445.5 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.08308, allocations: 7.969 kB / 445.5 MB, free: 1.602 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.473e-05/0.08316, allocations: 15.98 kB / 445.5 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.512e-06/0.08317, allocations: 8 kB / 445.5 MB, free: 1.578 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: 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.047e-05/0.08323, allocations: 121.8 kB / 445.6 MB, free: 1.449 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.562e-05/0.08325, allocations: 15.75 kB / 445.6 MB, free: 1.434 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.086e-05/0.08329, allocations: 20.69 kB / 445.7 MB, free: 1.41 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-06/0.08329, allocations: 0 / 445.7 MB, free: 1.41 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.0833, allocations: 4 kB / 445.7 MB, free: 1.406 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.08331, allocations: 0 / 445.7 MB, free: 1.406 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003491/0.08366, allocations: 390.4 kB / 446 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.08367, allocations: 3.984 kB / 446 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.181e-05/0.08375, allocations: 12 kB / 446.1 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.08376, allocations: 0 / 446.1 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.588e-06/0.08377, allocations: 4 kB / 446.1 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.08378, allocations: 3.984 kB / 446.1 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.08378, allocations: 0 / 446.1 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003287/0.08411, allocations: 255.7 kB / 446.3 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.123e-05/0.08415, allocations: 88.95 kB / 446.4 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.881e-05/0.08417, allocations: 4 kB / 446.4 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001209/0.08429, allocations: 15.97 kB / 446.4 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.803e-05/0.08434, allocations: 15.98 kB / 446.4 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.981e-06/0.08435, allocations: 0 / 446.4 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.425e-05/0.0844, allocations: 120.8 kB / 446.6 MB, free: 432 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08441, allocations: 0 / 446.6 MB, free: 432 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002147/0.08462, allocations: 19.91 kB / 446.6 MB, free: 412 kB / 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: 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.0005556/0.08519, allocations: 0.7826 MB / 447.4 MB, free: 15.59 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002601/0.08546, allocations: 87.94 kB / 447.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.532e-06/0.08547, allocations: 4.125 kB / 447.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.0856, allocations: 44.2 kB / 447.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002808/0.08589, allocations: 24.53 kB / 447.5 MB, free: 15.43 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001654/0.08755, allocations: 1.662 MB / 449.2 MB, free: 13.69 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000209/0.08777, allocations: 0.6963 MB / 449.9 MB, free: 12.97 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.026e-05/0.08783, allocations: 16.41 kB / 449.9 MB, free: 12.95 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.339e-05/0.08789, allocations: 31.42 kB / 449.9 MB, free: 12.92 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.08789, allocations: 0 / 449.9 MB, free: 12.92 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1652/0.2531, allocations: 2.396 MB / 452.3 MB, free: 10.57 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002396/0.2533, allocations: 196.6 kB / 452.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.688/1.941, allocations: 3.938 kB / 452.5 MB, free: 10.31 MB / 334.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 & /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 --timeout=50 --tolerance=1e-06 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.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_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches