Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",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.001419/0.001419, allocations: 106.5 kB / 17.33 MB, free: 5.992 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.001411/0.001411, allocations: 189.3 kB / 18.25 MB, free: 5.086 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.369/1.369, allocations: 222.9 MB / 241.9 MB, free: 15.42 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.1936/0.1936, allocations: 44.17 MB / 336.2 MB, free: 2.879 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.00137, allocations: 63.94 kB / 408 MB, free: 27.51 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08972/0.09111, allocations: 60.84 MB / 468.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002587/0.09373, allocations: 1.666 MB / 470.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007008/0.09445, allocations: 478.8 kB / 470.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.811e-05/0.09455, allocations: 4 kB / 471 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.669e-05/0.09466, allocations: 7.922 kB / 471 MB, free: 12.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.716e-05/0.09474, allocations: 7.938 kB / 471 MB, free: 12.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001636/0.0949, allocations: 35.92 kB / 471 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001199/0.09503, allocations: 83.75 kB / 471.1 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001071/0.09515, allocations: 28.2 kB / 471.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.818e-05/0.0952, allocations: 35.8 kB / 471.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.258e-05/0.09526, allocations: 23.86 kB / 471.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.753e-05/0.09528, allocations: 8 kB / 471.2 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.226e-05/0.0953, allocations: 8 kB / 471.2 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.439e-05/0.09533, allocations: 23.91 kB / 471.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.107e-05/0.09538, allocations: 35.8 kB / 471.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001136/0.0955, allocations: 83.88 kB / 471.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.855e-06/0.09551, allocations: 0 / 471.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.09552, allocations: 0 / 471.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.09553, allocations: 0 / 471.3 MB, free: 12.11 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004627/0.09599, allocations: 383.2 kB / 471.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.577e-05/0.09604, allocations: 16.03 kB / 471.7 MB, free: 11.67 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.024e-05/0.09609, allocations: 34.75 kB / 471.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.095e-05/0.09612, allocations: 12.84 kB / 471.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001601/0.09629, allocations: 192.1 kB / 471.9 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.09631, allocations: 8.375 kB / 472 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.929e-05/0.09633, allocations: 8.375 kB / 472 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001322/0.09647, allocations: 77.73 kB / 472 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.972e-06/0.09648, allocations: 0 / 472 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.0965, allocations: 7.984 kB / 472 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.09651, allocations: 0 / 472 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.095e-05/0.09659, allocations: 38.66 kB / 472.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004858/0.09708, allocations: 356.6 kB / 472.4 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.144e-05/0.09718, allocations: 46.55 kB / 472.5 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.142e-05/0.09722, allocations: 16.89 kB / 472.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.598e-06/0.09724, allocations: 4 kB / 472.5 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001334/0.09737, allocations: 71.38 kB / 472.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.09738, allocations: 0 / 472.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001833/0.09757, allocations: 89.47 kB / 472.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.401e-05/0.09761, allocations: 55.41 kB / 472.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001015/0.09772, allocations: 148 kB / 472.9 MB, free: 10.38 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.447e-05/0.09774, allocations: 25.7 kB / 472.9 MB, free: 10.35 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.821e-05/0.09779, allocations: 100 kB / 473 MB, free: 10.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.555e-05/0.09783, allocations: 27.72 kB / 473 MB, free: 10.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.978e-05/0.09787, allocations: 25.72 kB / 473 MB, free: 10.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.749e-05/0.09796, allocations: 322.8 kB / 473.3 MB, free: 9.863 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.504e-05/0.098, allocations: 12 kB / 473.4 MB, free: 9.852 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.392e-05/0.09805, allocations: 38.56 kB / 473.4 MB, free: 9.805 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.774e-05/0.09813, allocations: 54.5 kB / 473.5 MB, free: 9.742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.09813, allocations: 0 / 473.5 MB, free: 9.742 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001193/0.09826, allocations: 85.53 kB / 473.5 MB, free: 9.652 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/0.09828, allocations: 4 kB / 473.5 MB, free: 9.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.09829, allocations: 4.125 kB / 473.5 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.0983, allocations: 4 kB / 473.5 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.523e-05/0.09836, allocations: 11.94 kB / 473.6 MB, free: 9.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/0.09838, allocations: 12 kB / 473.6 MB, free: 9.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.315e-05/0.09844, allocations: 15.83 kB / 473.6 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.551e-06/0.09846, allocations: 0 / 473.6 MB, free: 9.602 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,fallingEdge.not_u,$PRE.fallingEdge.not_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 7.462e-05/0.09854, allocations: 117.8 kB / 473.7 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.531e-05/0.09856, allocations: 7.906 kB / 473.7 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.19e-05/0.09859, allocations: 20.64 kB / 473.7 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.0986, allocations: 0 / 473.7 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.09861, allocations: 4 kB / 473.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.09862, allocations: 3.984 kB / 473.7 MB, free: 9.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002865/0.09891, allocations: 346.4 kB / 474.1 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.09892, allocations: 4 kB / 474.1 MB, free: 9.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.286e-05/0.09897, allocations: 4 kB / 474.1 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.09898, allocations: 0 / 474.1 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.09899, allocations: 8 kB / 474.1 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.099, allocations: 0 / 474.1 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.09901, allocations: 0 / 474.1 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001869/0.0992, allocations: 199.8 kB / 474.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.433e-05/0.09924, allocations: 85.02 kB / 474.4 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.668e-05/0.09926, allocations: 0 / 474.4 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.865e-05/0.09936, allocations: 7.984 kB / 474.4 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.143e-05/0.0994, allocations: 11.98 kB / 474.4 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.722e-06/0.09942, allocations: 4 kB / 474.4 MB, free: 8.695 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.135e-05/0.09948, allocations: 105 kB / 474.5 MB, free: 8.594 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.413e-06/0.09949, allocations: 0 / 474.5 MB, free: 8.594 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002216/0.09971, allocations: 19.84 kB / 474.5 MB, free: 8.574 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,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_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.0003974/0.1001, allocations: 0.7286 MB / 475.2 MB, free: 7.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001223/0.1002, allocations: 51.92 kB / 475.3 MB, free: 7.77 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1003, allocations: 0 / 475.3 MB, free: 7.77 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.528e-05/0.1003, allocations: 19.94 kB / 475.3 MB, free: 7.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002832/0.1006, allocations: 24.17 kB / 475.3 MB, free: 7.727 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00131/0.1019, allocations: 1.537 MB / 476.9 MB, free: 6.098 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001964/0.1021, allocations: 0.6924 MB / 477.6 MB, free: 5.379 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.498e-05/0.1022, allocations: 8.422 kB / 477.6 MB, free: 5.371 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.652e-05/0.1022, allocations: 31.42 kB / 477.6 MB, free: 5.34 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1022, allocations: 0 / 477.6 MB, free: 5.34 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9198/1.022, allocations: 2.075 MB / 479.7 MB, free: 3.371 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002112/1.022, allocations: 189.3 kB / 479.9 MB, free: 3.121 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.072/3.094, allocations: 4 kB / 479.9 MB, free: 3.117 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches