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.001122/0.001121, allocations: 104.5 kB / 17.63 MB, free: 5.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.00105/0.00105, allocations: 192 kB / 18.56 MB, free: 4.434 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.4/1.4, allocations: 222.9 MB / 242.3 MB, free: 15.16 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.2066/0.2066, allocations: 44.18 MB / 336.6 MB, free: 2.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 57.31 kB / 408.5 MB, free: 27.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1255/0.127, allocations: 60.83 MB / 469.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003052/0.1301, allocations: 1.605 MB / 471 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008127/0.1309, allocations: 490.8 kB / 471.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.868e-05/0.1311, allocations: 7.938 kB / 471.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001091/0.1312, allocations: 7.875 kB / 471.5 MB, free: 12.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.279e-05/0.1312, allocations: 15.84 kB / 471.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001836/0.1314, allocations: 35.91 kB / 471.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001321/0.1316, allocations: 75.78 kB / 471.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.1317, allocations: 28.22 kB / 471.6 MB, free: 12 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.178e-05/0.1318, allocations: 35.84 kB / 471.6 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.933e-05/0.1318, allocations: 27.84 kB / 471.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.287e-05/0.1319, allocations: 8 kB / 471.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.476e-05/0.1319, allocations: 8 kB / 471.7 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.709e-05/0.1319, allocations: 19.86 kB / 471.7 MB, free: 11.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.507e-05/0.132, allocations: 31.81 kB / 471.7 MB, free: 11.87 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000123/0.1321, allocations: 79.94 kB / 471.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1321, allocations: 0 / 471.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1321, allocations: 0 / 471.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.1321, allocations: 0 / 471.8 MB, free: 11.79 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.000546/0.1327, allocations: 395.2 kB / 472.2 MB, free: 11.36 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.1327, allocations: 8.031 kB / 472.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.269e-05/0.1328, allocations: 38.73 kB / 472.2 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.305e-05/0.1328, allocations: 12.84 kB / 472.3 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001971/0.133, allocations: 196.1 kB / 472.4 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.133, allocations: 8.359 kB / 472.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.064e-05/0.1331, allocations: 8.375 kB / 472.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001656/0.1332, allocations: 81.73 kB / 472.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.576e-06/0.1333, allocations: 0 / 472.5 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.1333, allocations: 4 kB / 472.5 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.572e-06/0.1333, allocations: 4 kB / 472.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.582e-05/0.1334, allocations: 27.98 kB / 472.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005553/0.1339, allocations: 356.6 kB / 472.9 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001021/0.134, allocations: 50.56 kB / 473 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.26e-05/0.1341, allocations: 20.77 kB / 473 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.188e-06/0.1341, allocations: 3.984 kB / 473 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000173/0.1343, allocations: 67.44 kB / 473.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.1343, allocations: 0 / 473.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002176/0.1345, allocations: 97.73 kB / 473.2 MB, free: 10.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.639e-05/0.1346, allocations: 55.41 kB / 473.2 MB, free: 10.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.1347, allocations: 144 kB / 473.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.866e-05/0.1347, allocations: 29.7 kB / 473.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.388e-05/0.1348, allocations: 100 kB / 473.5 MB, free: 9.906 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.111e-05/0.1348, allocations: 15.75 kB / 473.5 MB, free: 9.891 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.39e-05/0.1348, allocations: 29.7 kB / 473.5 MB, free: 9.855 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.135, allocations: 318.8 kB / 473.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.272e-05/0.135, allocations: 19.98 kB / 473.9 MB, free: 9.516 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.927e-05/0.1351, allocations: 38.56 kB / 473.9 MB, free: 9.469 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.492e-05/0.1351, allocations: 50.58 kB / 473.9 MB, free: 9.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1351, allocations: 0 / 473.9 MB, free: 9.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001388/0.1353, allocations: 93.52 kB / 474 MB, free: 9.312 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.1353, allocations: 4.062 kB / 474 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.1353, allocations: 7.938 kB / 474 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.1353, allocations: 4 kB / 474.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.736e-05/0.1354, allocations: 7.984 kB / 474.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.603e-06/0.1354, allocations: 4 kB / 474.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.791e-05/0.1355, allocations: 11.84 kB / 474.1 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-06/0.1355, allocations: 0 / 474.1 MB, free: 9.273 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 8.735e-05/0.1356, allocations: 128.7 kB / 474.2 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.663e-05/0.1356, allocations: 7.906 kB / 474.2 MB, free: 9.133 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.601e-05/0.1357, allocations: 20.64 kB / 474.2 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1357, allocations: 0 / 474.2 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.1357, allocations: 8 kB / 474.2 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1357, allocations: 0 / 474.2 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003105/0.136, allocations: 338.5 kB / 474.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.136, allocations: 0 / 474.6 MB, free: 8.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.684e-05/0.1361, allocations: 7.938 kB / 474.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1361, allocations: 0 / 474.6 MB, free: 8.711 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.1361, allocations: 4 kB / 474.6 MB, free: 8.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.1361, allocations: 3.984 kB / 474.6 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1361, allocations: 4.188 kB / 474.6 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001993/0.1363, allocations: 191.4 kB / 474.8 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.319e-05/0.1364, allocations: 88.94 kB / 474.9 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.774e-05/0.1364, allocations: 0 / 474.9 MB, free: 8.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.138e-05/0.1365, allocations: 8 kB / 474.9 MB, free: 8.383 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.884e-05/0.1365, allocations: 7.984 kB / 474.9 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.073e-06/0.1365, allocations: 4 kB / 474.9 MB, free: 8.371 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.466e-05/0.1366, allocations: 111.3 kB / 475 MB, free: 8.262 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.353e-06/0.1366, allocations: 0 / 475 MB, free: 8.262 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002352/0.1369, allocations: 23.84 kB / 475 MB, free: 8.238 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.0004478/0.1373, allocations: 0.7201 MB / 475.7 MB, free: 7.492 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001341/0.1375, allocations: 52.34 kB / 475.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1375, allocations: 4.062 kB / 475.8 MB, free: 7.438 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.163e-05/0.1375, allocations: 28.08 kB / 475.8 MB, free: 7.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.1378, allocations: 14.03 kB / 475.8 MB, free: 7.398 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.1393, allocations: 1.516 MB / 477.3 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002458/0.1396, allocations: 0.6963 MB / 478 MB, free: 5.07 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.53e-05/0.1396, allocations: 8.375 kB / 478 MB, free: 5.062 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.203e-05/0.1397, allocations: 31.42 kB / 478.1 MB, free: 5.031 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1397, allocations: 0 / 478.1 MB, free: 5.031 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0203/0.16, allocations: 2.187 MB / 480.3 MB, free: 2.898 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.478/7.638, allocations: 11.91 kB / 480.3 MB, free: 2.891 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