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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001399/0.001399, allocations: 120.1 kB / 18.49 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001528/0.001528, allocations: 215 kB / 21.45 MB, free: 1.617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.532/1.532, allocations: 230.6 MB / 254.8 MB, free: 15.23 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2247/0.2247, allocations: 44.91 MB / 355.8 MB, free: 12.35 MB / 286.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001977/0.001977, allocations: 67.88 kB / 0.4885 GB, free: 11.84 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1222, allocations: 65.42 MB / 0.5524 GB, free: 10.29 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003249/0.1255, allocations: 1.627 MB / 0.554 GB, free: 8.645 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001033/0.1265, allocations: 0.5198 MB / 0.5545 GB, free: 8.121 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.757e-05/0.1266, allocations: 3.938 kB / 0.5545 GB, free: 8.117 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001328/0.1267, allocations: 15.86 kB / 0.5545 GB, free: 8.102 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.64e-05/0.1268, allocations: 15.88 kB / 0.5546 GB, free: 8.086 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001923/0.127, allocations: 27.91 kB / 0.5546 GB, free: 8.059 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001603/0.1272, allocations: 75.83 kB / 0.5547 GB, free: 7.984 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001209/0.1273, allocations: 36.42 kB / 0.5547 GB, free: 7.949 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.418e-05/0.1273, allocations: 31.86 kB / 0.5547 GB, free: 7.918 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.941e-05/0.1274, allocations: 27.84 kB / 0.5547 GB, free: 7.891 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.167e-05/0.1274, allocations: 11.94 kB / 0.5548 GB, free: 7.879 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.495e-05/0.1274, allocations: 8 kB / 0.5548 GB, free: 7.871 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.801e-05/0.1275, allocations: 11.98 kB / 0.5548 GB, free: 7.859 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.425e-05/0.1275, allocations: 27.81 kB / 0.5548 GB, free: 7.832 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001582/0.1277, allocations: 83.58 kB / 0.5549 GB, free: 7.75 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1277, allocations: 4 kB / 0.5549 GB, free: 7.746 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.757e-06/0.1277, allocations: 3.984 kB / 0.5549 GB, free: 7.742 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.07e-05/0.1277, allocations: 0 / 0.5549 GB, free: 7.742 MB / 414.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.0006577/0.1284, allocations: 387.1 kB / 0.5553 GB, free: 7.316 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.1284, allocations: 12.03 kB / 0.5553 GB, free: 7.305 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.642e-05/0.1284, allocations: 4.188 kB / 0.5553 GB, free: 7.301 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.465e-05/0.1285, allocations: 42.73 kB / 0.5553 GB, free: 7.25 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.634e-05/0.1285, allocations: 8.891 kB / 0.5553 GB, free: 7.242 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003699/0.1289, allocations: 208.1 kB / 0.5555 GB, free: 7 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/0.1289, allocations: 4.375 kB / 0.5555 GB, free: 6.996 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.089e-05/0.1289, allocations: 8.375 kB / 0.5555 GB, free: 6.988 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001803/0.1291, allocations: 79.52 kB / 0.5556 GB, free: 6.906 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.1291, allocations: 4 kB / 0.5556 GB, free: 6.902 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.145e-05/0.1291, allocations: 0 / 0.5556 GB, free: 6.902 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.1291, allocations: 3.984 kB / 0.5556 GB, free: 6.898 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.088e-05/0.1292, allocations: 35.98 kB / 0.5557 GB, free: 6.863 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006449/0.1299, allocations: 360.7 kB / 0.556 GB, free: 6.461 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.13, allocations: 46.5 kB / 0.556 GB, free: 6.406 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.481e-05/0.13, allocations: 12.89 kB / 0.5561 GB, free: 6.391 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.397e-05/0.1301, allocations: 3.938 kB / 0.5561 GB, free: 6.387 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001664/0.1302, allocations: 71.44 kB / 0.5561 GB, free: 6.305 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.1302, allocations: 0 / 0.5561 GB, free: 6.305 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002785/0.1305, allocations: 97.5 kB / 0.5562 GB, free: 6.203 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.835e-05/0.1306, allocations: 51.41 kB / 0.5563 GB, free: 6.141 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001511/0.1307, allocations: 135.9 kB / 0.5564 GB, free: 6 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.509e-05/0.1307, allocations: 29.7 kB / 0.5564 GB, free: 5.965 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.488e-05/0.1308, allocations: 104.1 kB / 0.5565 GB, free: 5.859 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.35e-05/0.1308, allocations: 11.91 kB / 0.5565 GB, free: 5.848 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.653e-05/0.1309, allocations: 33.7 kB / 0.5566 GB, free: 5.809 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.1311, allocations: 318.8 kB / 0.5569 GB, free: 5.488 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.719e-05/0.1311, allocations: 16 kB / 0.5569 GB, free: 5.473 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.946e-05/0.1312, allocations: 38.56 kB / 0.5569 GB, free: 5.426 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.382e-05/0.1313, allocations: 46.52 kB / 0.557 GB, free: 5.371 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.1313, allocations: 4 kB / 0.557 GB, free: 5.367 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001589/0.1314, allocations: 93.53 kB / 0.5571 GB, free: 5.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.1315, allocations: 11.88 kB / 0.5571 GB, free: 5.258 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.1315, allocations: 0 / 0.5571 GB, free: 5.258 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.915e-05/0.1315, allocations: 4 kB / 0.5571 GB, free: 5.254 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.48e-05/0.1316, allocations: 7.984 kB / 0.5571 GB, free: 5.246 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.999e-06/0.1316, allocations: 7.938 kB / 0.5571 GB, free: 5.238 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.061e-05/0.1316, allocations: 7.938 kB / 0.5571 GB, free: 5.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.183e-06/0.1316, allocations: 400 / 0.5571 GB, free: 5.23 MB / 414.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.000132/0.1318, allocations: 132.1 kB / 0.5572 GB, free: 5.094 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.183e-05/0.1318, allocations: 11.89 kB / 0.5572 GB, free: 5.082 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.838e-05/0.1318, allocations: 8.719 kB / 0.5572 GB, free: 5.07 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1318, allocations: 0 / 0.5572 GB, free: 5.07 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.736e-06/0.1318, allocations: 4 kB / 0.5572 GB, free: 5.066 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.1318, allocations: 0 / 0.5572 GB, free: 5.066 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004348/0.1323, allocations: 354.4 kB / 0.5576 GB, free: 4.664 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.1323, allocations: 4 kB / 0.5576 GB, free: 4.66 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.286e-05/0.1323, allocations: 8 kB / 0.5576 GB, free: 4.652 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.31e-06/0.1323, allocations: 3.984 kB / 0.5576 GB, free: 4.648 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.1324, allocations: 4 kB / 0.5576 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1324, allocations: 0 / 0.5576 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1324, allocations: 0 / 0.5576 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002377/0.1326, allocations: 191.6 kB / 0.5578 GB, free: 4.441 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.769e-05/0.1327, allocations: 85.09 kB / 0.5579 GB, free: 4.34 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.867e-05/0.1327, allocations: 7.875 kB / 0.5579 GB, free: 4.332 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.476e-05/0.1328, allocations: 16.05 kB / 0.5579 GB, free: 4.316 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.941e-05/0.1328, allocations: 4 kB / 0.5579 GB, free: 4.312 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.989e-06/0.1328, allocations: 4 kB / 0.5579 GB, free: 4.309 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.734e-05/0.1329, allocations: 105.3 kB / 0.558 GB, free: 4.207 MB / 414.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1329, allocations: 0 / 0.558 GB, free: 4.207 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002371/0.1331, allocations: 16 kB / 0.558 GB, free: 4.191 MB / 414.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.0005554/0.1337, allocations: 0.7202 MB / 0.5587 GB, free: 3.445 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001454/0.1338, allocations: 43.92 kB / 0.5588 GB, free: 3.402 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1338, allocations: 0 / 0.5588 GB, free: 3.402 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.604e-05/0.1339, allocations: 23.92 kB / 0.5588 GB, free: 3.379 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000316/0.1342, allocations: 23.91 kB / 0.5588 GB, free: 3.355 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001718/0.1359, allocations: 1.527 MB / 0.5603 GB, free: 1.738 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.1363, allocations: 0.6962 MB / 0.561 GB, free: 1.016 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.893e-05/0.1363, allocations: 12.42 kB / 0.561 GB, free: 1.004 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.555e-05/0.1364, allocations: 31.42 kB / 0.561 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of SimCode: time 6.12e-07/0.1364, allocations: 0 / 0.561 GB, free: 0.9727 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02019/0.1566, allocations: 2.262 MB / 0.5632 GB, free: 14.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.461/8.618, allocations: 5.562 kB / 0.5632 GB, free: 14.8 MB / 430.1 MB " [Timeout remaining time 651] (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 --stepSize=0.000997805 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.677484210988041]