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.0007858/0.0007858, allocations: 94.47 kB / 17.35 MB, free: 6.344 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.000841/0.0008411, allocations: 171.2 kB / 18.25 MB, free: 5.504 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.262/1.262, allocations: 223.2 MB / 242.3 MB, free: 212 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.203/0.203, allocations: 44.26 MB / 337.7 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003274/0.0003274, allocations: 8 kB / 410.4 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1144, allocations: 61.93 MB / 472.3 MB, free: 13.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.001803/0.1163, allocations: 1.318 MB / 473.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007054/0.117, allocations: 478.9 kB / 474.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.953e-05/0.1171, allocations: 0 / 474.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001049/0.1172, allocations: 3.938 kB / 474.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.564e-05/0.1173, allocations: 15.91 kB / 474.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001632/0.1174, allocations: 31.92 kB / 474.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001327/0.1176, allocations: 75.77 kB / 474.3 MB, free: 11.33 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001252/0.1177, allocations: 28.22 kB / 474.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.208e-05/0.1178, allocations: 23.86 kB / 474.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.416e-05/0.1178, allocations: 31.78 kB / 474.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.615e-05/0.1179, allocations: 0 / 474.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.329e-05/0.1179, allocations: 4 kB / 474.3 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.625e-05/0.1179, allocations: 11.94 kB / 474.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.14e-05/0.118, allocations: 53.5 kB / 474.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001173/0.1181, allocations: 63.98 kB / 474.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1181, allocations: 8 kB / 474.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.298e-06/0.1181, allocations: 0 / 474.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.1181, allocations: 3.938 kB / 474.5 MB, free: 11.1 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.0005196/0.1187, allocations: 371.3 kB / 474.8 MB, free: 10.69 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.1187, allocations: 8.031 kB / 474.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.735e-05/0.1188, allocations: 38.73 kB / 474.9 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.041e-05/0.1188, allocations: 12.84 kB / 474.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001852/0.119, allocations: 192.1 kB / 475.1 MB, free: 10.4 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.119, allocations: 12.38 kB / 475.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.353e-05/0.1191, allocations: 8.359 kB / 475.1 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001367/0.1192, allocations: 81.73 kB / 475.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.522e-06/0.1192, allocations: 0 / 475.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.097e-05/0.1192, allocations: 4 kB / 475.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.548e-06/0.1192, allocations: 0 / 475.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.256e-05/0.1193, allocations: 31.98 kB / 475.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005131/0.1198, allocations: 368.6 kB / 475.6 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.725e-05/0.12, allocations: 54.48 kB / 475.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.933e-05/0.12, allocations: 12.89 kB / 475.6 MB, free: 9.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.007e-06/0.12, allocations: 4 kB / 475.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001454/0.1202, allocations: 67.44 kB / 475.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.332e-06/0.1202, allocations: 0 / 475.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002028/0.1204, allocations: 97.44 kB / 475.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.738e-05/0.1204, allocations: 51.41 kB / 475.9 MB, free: 9.523 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001233/0.1206, allocations: 147.9 kB / 476 MB, free: 9.371 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.1206, allocations: 29.7 kB / 476 MB, free: 9.336 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.692e-05/0.1207, allocations: 104 kB / 476.1 MB, free: 9.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.179e-05/0.1207, allocations: 15.81 kB / 476.1 MB, free: 9.215 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.01e-05/0.1207, allocations: 17.72 kB / 476.2 MB, free: 9.191 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.1209, allocations: 322.8 kB / 476.5 MB, free: 8.867 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.313e-05/0.1209, allocations: 19.98 kB / 476.5 MB, free: 8.848 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.01e-05/0.121, allocations: 34.58 kB / 476.5 MB, free: 8.805 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.065e-05/0.1211, allocations: 58.81 kB / 476.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.1211, allocations: 0 / 476.6 MB, free: 8.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001339/0.1212, allocations: 93.5 kB / 476.7 MB, free: 8.641 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.1212, allocations: 7.938 kB / 476.7 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.924e-06/0.1212, allocations: 7.938 kB / 476.7 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.839e-06/0.1213, allocations: 0 / 476.7 MB, free: 8.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.669e-05/0.1213, allocations: 8 kB / 476.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.1213, allocations: 0 / 476.7 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.749e-05/0.1214, allocations: 19.98 kB / 476.7 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-06/0.1214, allocations: 0 / 476.7 MB, free: 8.598 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 0.0001002/0.1215, allocations: 124 kB / 476.8 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.51e-05/0.1215, allocations: 7.906 kB / 476.9 MB, free: 8.461 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.533e-05/0.1216, allocations: 20.64 kB / 476.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.1216, allocations: 0 / 476.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.1216, allocations: 0 / 476.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.1216, allocations: 0 / 476.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00032/0.1219, allocations: 358.3 kB / 477.2 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.1219, allocations: 0 / 477.2 MB, free: 8.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.516e-05/0.122, allocations: 4 kB / 477.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.122, allocations: 0 / 477.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.122, allocations: 0 / 477.2 MB, free: 8.031 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.122, allocations: 4 kB / 477.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.122, allocations: 0 / 477.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002037/0.1222, allocations: 187.4 kB / 477.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.373e-05/0.1223, allocations: 89.03 kB / 477.5 MB, free: 7.723 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.554e-05/0.1223, allocations: 4.062 kB / 477.5 MB, free: 7.719 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.891e-05/0.1224, allocations: 8 kB / 477.5 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.781e-05/0.1225, allocations: 7.984 kB / 477.5 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.1225, allocations: 7.938 kB / 477.5 MB, free: 7.695 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.224e-05/0.1225, allocations: 109.1 kB / 477.6 MB, free: 7.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1225, allocations: 192 / 477.6 MB, free: 7.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002248/0.1228, allocations: 16 kB / 477.7 MB, free: 7.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.0004449/0.1232, allocations: 0.7245 MB / 478.4 MB, free: 6.824 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001136/0.1234, allocations: 47.92 kB / 478.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1234, allocations: 0 / 478.4 MB, free: 6.777 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.83e-05/0.1234, allocations: 23.94 kB / 478.4 MB, free: 6.754 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002913/0.1237, allocations: 15.98 kB / 478.5 MB, free: 6.738 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001467/0.1252, allocations: 1.548 MB / 480 MB, free: 5.098 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.1254, allocations: 0.6965 MB / 480.7 MB, free: 4.375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.83e-05/0.1255, allocations: 8.438 kB / 480.7 MB, free: 4.367 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.023e-05/0.1255, allocations: 31.36 kB / 480.7 MB, free: 4.336 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1256, allocations: 0 / 480.7 MB, free: 4.336 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01081/0.1364, allocations: 1.94 MB / 482.7 MB, free: 2.508 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001626/0.1366, allocations: 189.5 kB / 482.9 MB, free: 2.254 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.712/1.849, allocations: 4.062 kB / 482.9 MB, free: 2.25 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","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches