Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 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.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_3_2_3_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.00139/0.001391, allocations: 107.8 kB / 15.98 MB, free: 6.34 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.001251/0.001251, allocations: 190.2 kB / 16.9 MB, free: 6.184 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.443/1.443, allocations: 205.1 MB / 222.8 MB, free: 12.47 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.1867/0.1867, allocations: 43.51 MB / 313.6 MB, free: 0.6992 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.001599/0.001599, allocations: 71.98 kB / 382.3 MB, free: 56.89 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1125, allocations: 57.78 MB / 440.1 MB, free: 7.254 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002634/0.1152, allocations: 1.666 MB / 441.8 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006671/0.1159, allocations: 0.5119 MB / 442.3 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.529e-05/0.116, allocations: 4 kB / 442.3 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000129/0.1161, allocations: 7.922 kB / 442.3 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.411e-05/0.1162, allocations: 7.938 kB / 442.3 MB, free: 5.027 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001736/0.1164, allocations: 31.92 kB / 442.3 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001131/0.1165, allocations: 83.67 kB / 442.4 MB, free: 4.914 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.1166, allocations: 36.12 kB / 442.4 MB, free: 4.879 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.995e-05/0.1167, allocations: 27.92 kB / 442.5 MB, free: 4.852 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.321e-05/0.1167, allocations: 31.8 kB / 442.5 MB, free: 4.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.543e-05/0.1168, allocations: 8 kB / 442.5 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.485e-05/0.1168, allocations: 15.94 kB / 442.5 MB, free: 4.797 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.158e-05/0.1168, allocations: 11.92 kB / 442.5 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.027e-05/0.1168, allocations: 43.78 kB / 442.6 MB, free: 4.742 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001011/0.117, allocations: 63.8 kB / 442.6 MB, free: 4.68 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.117, allocations: 0 / 442.6 MB, free: 4.68 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.117, allocations: 0 / 442.6 MB, free: 4.68 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.117, allocations: 0 / 442.6 MB, free: 4.68 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004769/0.1175, allocations: 399.1 kB / 443 MB, free: 4.242 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.1175, allocations: 11.89 kB / 443 MB, free: 4.23 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.189e-05/0.1175, allocations: 42.75 kB / 443.1 MB, free: 4.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.959e-05/0.1176, allocations: 12.84 kB / 443.1 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001512/0.1177, allocations: 188.2 kB / 443.3 MB, free: 3.945 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.062e-05/0.1178, allocations: 8.312 kB / 443.3 MB, free: 3.938 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.677e-05/0.1178, allocations: 12.38 kB / 443.3 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001376/0.1179, allocations: 81.73 kB / 443.4 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.118, allocations: 0 / 443.4 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.019e-05/0.118, allocations: 3.984 kB / 443.4 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.118, allocations: 4 kB / 443.4 MB, free: 3.832 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.183e-05/0.1181, allocations: 31.98 kB / 443.4 MB, free: 3.801 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000455/0.1185, allocations: 356.4 kB / 443.8 MB, free: 3.402 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.955e-05/0.1186, allocations: 46.52 kB / 443.8 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.901e-05/0.1187, allocations: 16.92 kB / 443.8 MB, free: 3.328 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.408e-05/0.1187, allocations: 8 kB / 443.8 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001325/0.1188, allocations: 67.38 kB / 443.9 MB, free: 3.242 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.643e-06/0.1188, allocations: 0 / 443.9 MB, free: 3.242 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001839/0.119, allocations: 89.53 kB / 444 MB, free: 3.148 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.076e-05/0.119, allocations: 55.34 kB / 444 MB, free: 3.082 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.354e-05/0.1191, allocations: 143.8 kB / 444.2 MB, free: 2.934 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.165e-05/0.1192, allocations: 29.7 kB / 444.2 MB, free: 2.898 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.71e-05/0.1192, allocations: 100 kB / 444.3 MB, free: 2.797 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.94e-05/0.1192, allocations: 19.8 kB / 444.3 MB, free: 2.777 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.23e-05/0.1193, allocations: 21.72 kB / 444.4 MB, free: 2.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.044e-05/0.1193, allocations: 322.8 kB / 444.7 MB, free: 2.426 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.253e-05/0.1193, allocations: 12 kB / 444.7 MB, free: 2.414 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.879e-05/0.1194, allocations: 42.55 kB / 444.7 MB, free: 2.363 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.818e-05/0.1195, allocations: 54.5 kB / 444.8 MB, free: 2.301 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1195, allocations: 0 / 444.8 MB, free: 2.301 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001041/0.1196, allocations: 89.53 kB / 444.9 MB, free: 2.207 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.1196, allocations: 4 kB / 444.9 MB, free: 2.203 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1196, allocations: 3.938 kB / 444.9 MB, free: 2.199 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.1196, allocations: 4 kB / 444.9 MB, free: 2.195 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.492e-05/0.1197, allocations: 4 kB / 444.9 MB, free: 2.191 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.1197, allocations: 4 kB / 444.9 MB, free: 2.188 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.734e-05/0.1197, allocations: 16.31 kB / 444.9 MB, free: 2.172 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.1e-06/0.1198, allocations: 0 / 444.9 MB, free: 2.172 MB / 318.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 5.443e-05/0.1198, allocations: 133.7 kB / 445 MB, free: 2.031 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.303e-05/0.1198, allocations: 7.906 kB / 445 MB, free: 2.023 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.694e-05/0.1199, allocations: 16.59 kB / 445.1 MB, free: 2.004 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.1199, allocations: 7.984 kB / 445.1 MB, free: 1.996 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.476e-06/0.1199, allocations: 0 / 445.1 MB, free: 1.996 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.1199, allocations: 3.984 kB / 445.1 MB, free: 1.992 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002132/0.1201, allocations: 350.8 kB / 445.4 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/0.1201, allocations: 0 / 445.4 MB, free: 1.594 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.12e-05/0.1202, allocations: 7.938 kB / 445.4 MB, free: 1.586 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.1202, allocations: 4 kB / 445.4 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.266e-06/0.1202, allocations: 0 / 445.4 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.1202, allocations: 0 / 445.4 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.1202, allocations: 0 / 445.4 MB, free: 1.582 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001486/0.1203, allocations: 203.4 kB / 445.6 MB, free: 1.367 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.986e-05/0.1204, allocations: 81.02 kB / 445.7 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.688e-05/0.1204, allocations: 0 / 445.7 MB, free: 1.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.442e-05/0.1205, allocations: 12.02 kB / 445.7 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.987e-05/0.1205, allocations: 7.984 kB / 445.7 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.37e-06/0.1205, allocations: 4 kB / 445.7 MB, free: 1.246 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.125e-05/0.1206, allocations: 105.1 kB / 445.8 MB, free: 1.145 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1206, allocations: 3.938 kB / 445.8 MB, free: 1.141 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002178/0.1208, allocations: 16 kB / 445.8 MB, free: 1.125 MB / 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,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.0003021/0.1211, allocations: 0.7319 MB / 446.6 MB, free: 376 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001124/0.1212, allocations: 47.92 kB / 446.6 MB, free: 328 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.1213, allocations: 0 / 446.6 MB, free: 328 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.204e-05/0.1213, allocations: 23.94 kB / 446.6 MB, free: 304 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.1216, allocations: 16.17 kB / 446.7 MB, free: 288 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001461/0.1231, allocations: 1.54 MB / 448.2 MB, free: 14.65 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002461/0.1233, allocations: 0.7079 MB / 448.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.488e-05/0.1234, allocations: 8.438 kB / 448.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.9e-05/0.1234, allocations: 31.36 kB / 448.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1234, allocations: 0 / 448.9 MB, free: 13.88 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3806/0.504, allocations: 2.072 MB / 451 MB, free: 11.85 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002397/0.5043, allocations: 185.9 kB / 451.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.966/2.47, allocations: 7.938 kB / 451.2 MB, free: 11.59 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches