Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_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.001213/0.001214, allocations: 113.1 kB / 17.33 MB, free: 6.02 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.001231/0.001231, allocations: 197.3 kB / 18.25 MB, free: 5.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 222.9 MB / 241.9 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1656/0.1656, allocations: 44.18 MB / 336.2 MB, free: 2.977 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 65.34 kB / 408 MB, free: 27.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08049/0.08166, allocations: 60.83 MB / 468.8 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.002452/0.08414, allocations: 1.677 MB / 470.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007372/0.0849, allocations: 0.5495 MB / 471 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.195e-05/0.08497, allocations: 0 / 471 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.417e-05/0.08509, allocations: 7.922 kB / 471 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.993e-05/0.08514, allocations: 7.938 kB / 471.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002682/0.08541, allocations: 87.58 kB / 471.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001263/0.08555, allocations: 119.7 kB / 471.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.226e-05/0.08565, allocations: 28.27 kB / 471.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.004e-05/0.08571, allocations: 43.84 kB / 471.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.581e-05/0.08577, allocations: 43.77 kB / 471.4 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.956e-05/0.0858, allocations: 12 kB / 471.4 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.454e-05/0.08582, allocations: 8 kB / 471.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.172e-05/0.08585, allocations: 19.91 kB / 471.4 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.329e-05/0.08589, allocations: 47.73 kB / 471.5 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001059/0.08601, allocations: 91.64 kB / 471.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.08602, allocations: 0 / 471.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.08602, allocations: 0 / 471.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.08603, allocations: 0 / 471.5 MB, free: 11.92 MB / 350.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.0005029/0.08654, allocations: 407.1 kB / 471.9 MB, free: 11.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.078e-05/0.08657, allocations: 12.03 kB / 472 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.231e-05/0.08661, allocations: 42.73 kB / 472 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.783e-05/0.08664, allocations: 8.844 kB / 472 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001642/0.08681, allocations: 200.1 kB / 472.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.08684, allocations: 4.375 kB / 472.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.338e-05/0.08687, allocations: 16.31 kB / 472.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002388/0.08711, allocations: 101.7 kB / 472.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.08713, allocations: 0 / 472.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.08714, allocations: 8 kB / 472.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.527e-06/0.08716, allocations: 4 kB / 472.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000141/0.0873, allocations: 47.95 kB / 472.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005525/0.08786, allocations: 392.4 kB / 472.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003001/0.08817, allocations: 102.5 kB / 472.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.08829, allocations: 36.91 kB / 472.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.066e-05/0.0883, allocations: 0 / 472.9 MB, free: 10.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002311/0.08854, allocations: 107.3 kB / 473 MB, free: 10.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.253e-06/0.08855, allocations: 7.938 kB / 473 MB, free: 10.28 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003811/0.08894, allocations: 137.5 kB / 473.1 MB, free: 10.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.171e-05/0.08898, allocations: 59.39 kB / 473.2 MB, free: 10.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001017/0.08909, allocations: 155.3 kB / 473.4 MB, free: 9.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.08911, allocations: 29.7 kB / 473.4 MB, free: 9.875 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.364e-05/0.08916, allocations: 96.05 kB / 473.5 MB, free: 9.777 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.036e-05/0.08918, allocations: 19.8 kB / 473.5 MB, free: 9.758 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.052e-05/0.08923, allocations: 25.72 kB / 473.5 MB, free: 9.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.06e-05/0.08931, allocations: 326.8 kB / 473.8 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.08943, allocations: 35.97 kB / 473.9 MB, free: 9.363 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001091/0.08955, allocations: 53.69 kB / 473.9 MB, free: 9.305 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001796/0.08974, allocations: 69.69 kB / 474 MB, free: 9.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.08975, allocations: 7.938 kB / 474 MB, free: 9.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002456/0.09, allocations: 117.6 kB / 474.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.09002, allocations: 11.92 kB / 474.1 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.377e-06/0.09003, allocations: 0 / 474.1 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.925e-06/0.09004, allocations: 0 / 474.1 MB, free: 9.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.512e-05/0.09013, allocations: 20.03 kB / 474.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.09014, allocations: 7.984 kB / 474.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.341e-05/0.09023, allocations: 19.97 kB / 474.2 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.09024, allocations: 4 kB / 474.2 MB, free: 9.039 MB / 350.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.979e-05/0.09032, allocations: 113.8 kB / 474.3 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.676e-05/0.09034, allocations: 11.84 kB / 474.3 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.287e-05/0.09038, allocations: 16.72 kB / 474.3 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.09038, allocations: 7.938 kB / 474.3 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.09039, allocations: 0 / 474.3 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.0904, allocations: 3.984 kB / 474.3 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004281/0.09083, allocations: 386.5 kB / 474.7 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.09084, allocations: 4 kB / 474.7 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.893e-05/0.09093, allocations: 15.98 kB / 474.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.09094, allocations: 4 kB / 474.7 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.977e-06/0.09095, allocations: 0 / 474.7 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/0.09096, allocations: 3.938 kB / 474.7 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.09096, allocations: 0 / 474.7 MB, free: 8.418 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003836/0.09135, allocations: 251.2 kB / 475 MB, free: 8.156 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.499e-05/0.0914, allocations: 92.94 kB / 475.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.857e-05/0.09142, allocations: 4.031 kB / 475.1 MB, free: 8.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.09155, allocations: 11.98 kB / 475.1 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.197e-05/0.0916, allocations: 15.98 kB / 475.1 MB, free: 8.016 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-06/0.09162, allocations: 12.05 kB / 475.1 MB, free: 8.004 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.306e-05/0.09168, allocations: 105 kB / 475.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09169, allocations: 0 / 475.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002193/0.09191, allocations: 23.94 kB / 475.2 MB, free: 7.879 MB / 350.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.0005886/0.09251, allocations: 0.7792 MB / 476 MB, free: 7.074 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002503/0.09277, allocations: 87.95 kB / 476.1 MB, free: 6.988 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.09278, allocations: 0 / 476.1 MB, free: 6.988 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001209/0.0929, allocations: 44.52 kB / 476.2 MB, free: 6.945 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.09318, allocations: 20.2 kB / 476.2 MB, free: 6.926 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001632/0.09482, allocations: 1.669 MB / 477.8 MB, free: 5.172 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001905/0.09503, allocations: 0.7002 MB / 478.5 MB, free: 4.445 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.124e-05/0.09508, allocations: 12.55 kB / 478.6 MB, free: 4.434 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.255e-05/0.09513, allocations: 31.44 kB / 478.6 MB, free: 4.402 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.09514, allocations: 0 / 478.6 MB, free: 4.402 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7839/0.8791, allocations: 2.403 MB / 481 MB, free: 2.102 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002865/0.8794, allocations: 196.3 kB / 481.2 MB, free: 1.844 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.073/2.952, allocations: 0 / 481.2 MB, free: 1.844 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches