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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 117.6 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001323/0.001323, allocations: 190.9 kB / 21.44 MB, free: 1.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.472/1.472, allocations: 225.6 MB / 249.8 MB, free: 3.609 MB / 190.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.2441/0.2441, allocations: 44.92 MB / 349.6 MB, free: 1.797 MB / 270.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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 67.72 kB / 491.8 MB, free: 29.93 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1238/0.1258, allocations: 64.27 MB / 0.543 GB, free: 4.117 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00301/0.1288, allocations: 1.608 MB / 0.5446 GB, free: 2.492 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009572/0.1297, allocations: 0.4947 MB / 0.5451 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001045/0.1299, allocations: 4 kB / 0.5451 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001423/0.13, allocations: 7.875 kB / 0.5451 GB, free: 1.98 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.98e-05/0.1301, allocations: 11.86 kB / 0.5451 GB, free: 1.969 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002307/0.1303, allocations: 35.91 kB / 0.5451 GB, free: 1.934 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001974/0.1305, allocations: 83.75 kB / 0.5452 GB, free: 1.852 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001271/0.1306, allocations: 24.44 kB / 0.5452 GB, free: 1.828 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.836e-05/0.1307, allocations: 31.8 kB / 0.5452 GB, free: 1.797 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.946e-05/0.1308, allocations: 31.84 kB / 0.5453 GB, free: 1.766 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.407e-05/0.1308, allocations: 8 kB / 0.5453 GB, free: 1.758 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.472e-05/0.1308, allocations: 8 kB / 0.5453 GB, free: 1.75 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.007e-05/0.1308, allocations: 15.94 kB / 0.5453 GB, free: 1.734 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.223e-05/0.1309, allocations: 39.78 kB / 0.5453 GB, free: 1.695 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002055/0.1311, allocations: 71.66 kB / 0.5454 GB, free: 1.625 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.1311, allocations: 4 kB / 0.5454 GB, free: 1.621 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.1311, allocations: 0 / 0.5454 GB, free: 1.621 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.296e-06/0.1311, allocations: 0 / 0.5454 GB, free: 1.621 MB / 398.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.0007732/0.1319, allocations: 395.1 kB / 0.5458 GB, free: 1.188 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.269e-05/0.1319, allocations: 12.03 kB / 0.5458 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.428e-05/0.132, allocations: 34.75 kB / 0.5458 GB, free: 1.133 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.067e-05/0.132, allocations: 16.88 kB / 0.5459 GB, free: 1.117 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003291/0.1324, allocations: 192.2 kB / 0.546 GB, free: 0.8906 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.52e-05/0.1324, allocations: 8.375 kB / 0.546 GB, free: 0.8828 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.94e-05/0.1324, allocations: 8.375 kB / 0.546 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001773/0.1326, allocations: 88.14 kB / 0.5461 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.1326, allocations: 0 / 0.5461 GB, free: 0.7852 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.1326, allocations: 8 kB / 0.5461 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.1326, allocations: 4 kB / 0.5461 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.89e-05/0.1327, allocations: 27.98 kB / 0.5462 GB, free: 0.7461 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000652/0.1334, allocations: 360.5 kB / 0.5465 GB, free: 352 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001176/0.1335, allocations: 42.56 kB / 0.5466 GB, free: 300 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.696e-05/0.1335, allocations: 20.89 kB / 0.5466 GB, free: 276 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.444e-05/0.1335, allocations: 0 / 0.5466 GB, free: 276 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001605/0.1337, allocations: 67.38 kB / 0.5466 GB, free: 196 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.232e-06/0.1337, allocations: 0 / 0.5466 GB, free: 196 kB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002399/0.1339, allocations: 89.56 kB / 0.5467 GB, free: 100 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.267e-05/0.134, allocations: 51.41 kB / 0.5468 GB, free: 36 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001715/0.1342, allocations: 141.8 kB / 0.5469 GB, free: 15.89 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.499e-05/0.1342, allocations: 29.7 kB / 0.5469 GB, free: 15.85 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.058e-05/0.1343, allocations: 108.1 kB / 0.547 GB, free: 15.74 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.682e-05/0.1343, allocations: 15.84 kB / 0.5471 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.012e-05/0.1343, allocations: 29.7 kB / 0.5471 GB, free: 15.69 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001815/0.1345, allocations: 318.8 kB / 0.5474 GB, free: 15.37 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.747e-05/0.1346, allocations: 19.92 kB / 0.5474 GB, free: 15.35 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.625e-05/0.1346, allocations: 38.56 kB / 0.5474 GB, free: 15.3 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.452e-05/0.1347, allocations: 50.58 kB / 0.5475 GB, free: 15.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1347, allocations: 4 kB / 0.5475 GB, free: 15.24 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000142/0.1349, allocations: 81.58 kB / 0.5476 GB, free: 15.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.478e-05/0.1349, allocations: 10.12 kB / 0.5476 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.1349, allocations: 7.938 kB / 0.5476 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.1349, allocations: 0 / 0.5476 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.172e-05/0.135, allocations: 11.98 kB / 0.5476 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.135, allocations: 4.062 kB / 0.5476 GB, free: 15.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.548e-05/0.1351, allocations: 16.03 kB / 0.5476 GB, free: 15.11 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/0.1351, allocations: 4 kB / 0.5476 GB, free: 15.11 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.0001117/0.1352, allocations: 113.8 kB / 0.5477 GB, free: 14.98 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.914e-05/0.1352, allocations: 11.94 kB / 0.5477 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.956e-05/0.1352, allocations: 16.66 kB / 0.5478 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.1352, allocations: 0 / 0.5478 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.778e-06/0.1352, allocations: 3.938 kB / 0.5478 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1352, allocations: 0 / 0.5478 GB, free: 14.95 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004011/0.1356, allocations: 354.4 kB / 0.5481 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1356, allocations: 0 / 0.5481 GB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.918e-05/0.1357, allocations: 4 kB / 0.5481 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.1357, allocations: 0 / 0.5481 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.1357, allocations: 4 kB / 0.5481 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.1357, allocations: 4.453 kB / 0.5481 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1357, allocations: 0 / 0.5481 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002413/0.136, allocations: 199.3 kB / 0.5483 GB, free: 14.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.036e-05/0.136, allocations: 93.03 kB / 0.5484 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.967e-05/0.136, allocations: 4.031 kB / 0.5484 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.127e-05/0.1361, allocations: 0 / 0.5484 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.816e-05/0.1362, allocations: 11.98 kB / 0.5484 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/0.1362, allocations: 4 kB / 0.5484 GB, free: 14.2 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.06e-05/0.1363, allocations: 107.2 kB / 0.5485 GB, free: 14.09 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1363, allocations: 0 / 0.5485 GB, free: 14.09 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002305/0.1365, allocations: 16.14 kB / 0.5485 GB, free: 14.07 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.0006493/0.1371, allocations: 0.728 MB / 0.5492 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001643/0.1373, allocations: 43.92 kB / 0.5493 GB, free: 13.28 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1373, allocations: 0 / 0.5493 GB, free: 13.28 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.298e-05/0.1374, allocations: 19.98 kB / 0.5493 GB, free: 13.26 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.1377, allocations: 22.36 kB / 0.5493 GB, free: 13.24 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002067/0.1397, allocations: 1.526 MB / 0.5508 GB, free: 11.62 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005027/0.1403, allocations: 0.6963 MB / 0.5515 GB, free: 10.89 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.062e-05/0.1403, allocations: 16.42 kB / 0.5515 GB, free: 10.88 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.888e-05/0.1404, allocations: 31.42 kB / 0.5515 GB, free: 10.85 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.1404, allocations: 112 / 0.5515 GB, free: 10.85 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02626/0.1666, allocations: 2.246 MB / 0.5537 GB, free: 8.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.968/8.135, allocations: 11.69 kB / 0.5537 GB, free: 8.672 MB / 414.1 MB " [Timeout remaining time 652] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.207932178396732]