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.001641/0.001641, allocations: 103.2 kB / 16.27 MB, free: 6.41 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.001898/0.001899, allocations: 190.5 kB / 17.2 MB, free: 5.953 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.937/1.937, allocations: 205.1 MB / 223.1 MB, free: 12.31 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.2847/0.2847, allocations: 43.52 MB / 313.9 MB, free: 0.5273 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.001557/0.001557, allocations: 68.3 kB / 382.8 MB, free: 56.68 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1419/0.1435, allocations: 57.79 MB / 440.6 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00308/0.1466, allocations: 1.61 MB / 442.2 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008006/0.1475, allocations: 0.5229 MB / 442.7 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.494e-05/0.1475, allocations: 0 / 442.7 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.522e-05/0.1476, allocations: 11.88 kB / 442.8 MB, free: 4.66 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 3.291e-05/0.1477, allocations: 19.86 kB / 442.8 MB, free: 4.641 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001275/0.1478, allocations: 31.91 kB / 442.8 MB, free: 4.609 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000128/0.1479, allocations: 83.67 kB / 442.9 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001269/0.1481, allocations: 28.16 kB / 442.9 MB, free: 4.5 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.137e-05/0.1481, allocations: 31.86 kB / 442.9 MB, free: 4.469 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.593e-05/0.1482, allocations: 43.78 kB / 443 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.597e-05/0.1482, allocations: 4 kB / 443 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.661e-05/0.1483, allocations: 8 kB / 443 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.574e-05/0.1483, allocations: 8 kB / 443 MB, free: 4.406 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.695e-05/0.1484, allocations: 47.66 kB / 443.1 MB, free: 4.359 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001335/0.1485, allocations: 63.8 kB / 443.1 MB, free: 4.297 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.1485, allocations: 0 / 443.1 MB, free: 4.297 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.1485, allocations: 0 / 443.1 MB, free: 4.297 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.104e-06/0.1485, allocations: 0 / 443.1 MB, free: 4.297 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.0004732/0.149, allocations: 395.2 kB / 443.5 MB, free: 3.863 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.149, allocations: 11.89 kB / 443.5 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.896e-05/0.1491, allocations: 46.73 kB / 443.6 MB, free: 3.797 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.981e-05/0.1491, allocations: 8.844 kB / 443.6 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002169/0.1494, allocations: 184.2 kB / 443.7 MB, free: 3.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.1494, allocations: 4.375 kB / 443.8 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.197e-05/0.1494, allocations: 12.38 kB / 443.8 MB, free: 3.555 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001356/0.1495, allocations: 81.72 kB / 443.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.1496, allocations: 3.938 kB / 443.8 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.1496, allocations: 0 / 443.8 MB, free: 3.465 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.1496, allocations: 8 kB / 443.9 MB, free: 3.457 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.653e-05/0.1497, allocations: 35.98 kB / 443.9 MB, free: 3.422 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004812/0.1501, allocations: 352.4 kB / 444.2 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.235e-05/0.1503, allocations: 54.5 kB / 444.3 MB, free: 2.965 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.018e-05/0.1503, allocations: 16.89 kB / 444.3 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.498e-06/0.1503, allocations: 4 kB / 444.3 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001571/0.1505, allocations: 67.42 kB / 444.4 MB, free: 2.863 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.323e-06/0.1505, allocations: 0 / 444.4 MB, free: 2.863 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0001914/0.1507, allocations: 89.47 kB / 444.5 MB, free: 2.77 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.02e-05/0.1507, allocations: 55.39 kB / 444.5 MB, free: 2.703 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.275e-05/0.1508, allocations: 142.5 kB / 444.7 MB, free: 2.555 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.1508, allocations: 33.7 kB / 444.7 MB, free: 2.516 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.541e-05/0.1509, allocations: 100 kB / 444.8 MB, free: 2.414 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.291e-05/0.1509, allocations: 15.8 kB / 444.8 MB, free: 2.398 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.907e-05/0.151, allocations: 21.72 kB / 444.8 MB, free: 2.371 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.759e-05/0.151, allocations: 322.8 kB / 445.1 MB, free: 2.047 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.358e-05/0.1511, allocations: 15.98 kB / 445.2 MB, free: 2.031 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.07e-05/0.1511, allocations: 38.58 kB / 445.2 MB, free: 1.984 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.094e-05/0.1512, allocations: 54.5 kB / 445.2 MB, free: 1.922 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.1512, allocations: 0 / 445.2 MB, free: 1.922 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001016/0.1513, allocations: 85.53 kB / 445.3 MB, free: 1.832 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.1513, allocations: 7 kB / 445.3 MB, free: 1.828 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.1513, allocations: 7.938 kB / 445.3 MB, free: 1.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.36e-05/0.1514, allocations: 3.938 kB / 445.3 MB, free: 1.816 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.463e-05/0.1514, allocations: 12.06 kB / 445.4 MB, free: 1.805 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.308e-06/0.1514, allocations: 0 / 445.4 MB, free: 1.805 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.272e-05/0.1515, allocations: 12.06 kB / 445.4 MB, free: 1.793 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.1515, allocations: 15.94 kB / 445.4 MB, free: 1.777 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 6.888e-05/0.1516, allocations: 119 kB / 445.5 MB, free: 1.652 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.411e-05/0.1516, allocations: 7.906 kB / 445.5 MB, free: 1.645 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.04e-05/0.1516, allocations: 20.64 kB / 445.5 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.1516, allocations: 0 / 445.5 MB, free: 1.621 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.1517, allocations: 4 kB / 445.5 MB, free: 1.617 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.1517, allocations: 3.938 kB / 445.5 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002443/0.1519, allocations: 358.7 kB / 445.9 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.1519, allocations: 0 / 445.9 MB, free: 1.207 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.162e-05/0.152, allocations: 4 kB / 445.9 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.152, allocations: 0 / 445.9 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.152, allocations: 0 / 445.9 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.152, allocations: 0 / 445.9 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.152, allocations: 0 / 445.9 MB, free: 1.203 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001695/0.1522, allocations: 195.4 kB / 446.1 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.187e-05/0.1522, allocations: 85.03 kB / 446.2 MB, free: 0.8945 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.812e-05/0.1523, allocations: 4 kB / 446.2 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.62e-05/0.1523, allocations: 8 kB / 446.2 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.59e-05/0.1524, allocations: 11.92 kB / 446.2 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-06/0.1524, allocations: 0 / 446.2 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.555e-05/0.1524, allocations: 103.3 kB / 446.3 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1524, allocations: 0 / 446.3 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002178/0.1527, allocations: 24.05 kB / 446.3 MB, free: 0.7461 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.0003225/0.153, allocations: 0.7201 MB / 447 MB, free: 0 / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001664/0.1532, allocations: 48 kB / 447.1 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1532, allocations: 0 / 447.1 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.402e-05/0.1533, allocations: 23.94 kB / 447.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002837/0.1535, allocations: 28.11 kB / 447.1 MB, free: 15.9 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001576/0.1551, allocations: 1.526 MB / 448.7 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003549/0.1555, allocations: 0.7039 MB / 449.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.569e-05/0.1556, allocations: 4.547 kB / 449.4 MB, free: 13.55 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.241e-05/0.1556, allocations: 35.36 kB / 449.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1556, allocations: 0 / 449.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02341/0.1791, allocations: 2.202 MB / 451.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.144/8.323, allocations: 5.672 kB / 451.6 MB, free: 11.32 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches