Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001711/0.001711, allocations: 117.3 kB / 18.5 MB, free: 4.434 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002125/0.002125, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 230.2 MB / 254.5 MB, free: 15.39 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2343/0.2343, allocations: 46.9 MB / 357.4 MB, free: 10.48 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002275/0.002275, allocations: 81.48 kB / 0.4912 GB, free: 26.79 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1248, allocations: 65.98 MB / 0.5557 GB, free: 9.09 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00345/0.1283, allocations: 1.632 MB / 0.5573 GB, free: 7.441 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001022/0.1293, allocations: 0.5198 MB / 0.5578 GB, free: 6.918 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.452e-05/0.1294, allocations: 0 / 0.5578 GB, free: 6.918 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000145/0.1296, allocations: 23.8 kB / 0.5578 GB, free: 6.895 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.141e-05/0.1296, allocations: 7.938 kB / 0.5578 GB, free: 6.887 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002005/0.1298, allocations: 31.89 kB / 0.5578 GB, free: 6.855 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001569/0.13, allocations: 83.7 kB / 0.5579 GB, free: 6.773 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001286/0.1301, allocations: 32.44 kB / 0.558 GB, free: 6.738 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.354e-05/0.1301, allocations: 23.92 kB / 0.558 GB, free: 6.715 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.866e-05/0.1302, allocations: 35.78 kB / 0.558 GB, free: 6.68 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.408e-05/0.1303, allocations: 8 kB / 0.558 GB, free: 6.672 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.194e-05/0.1303, allocations: 4 kB / 0.558 GB, free: 6.668 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.915e-05/0.1303, allocations: 15.98 kB / 0.558 GB, free: 6.652 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.413e-05/0.1304, allocations: 43.73 kB / 0.5581 GB, free: 6.609 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001694/0.1305, allocations: 71.66 kB / 0.5581 GB, free: 6.539 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.1305, allocations: 0 / 0.5581 GB, free: 6.539 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1305, allocations: 3.938 kB / 0.5581 GB, free: 6.535 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.025e-05/0.1305, allocations: 0 / 0.5581 GB, free: 6.535 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.000637/0.1312, allocations: 391.1 kB / 0.5585 GB, free: 6.105 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.1312, allocations: 12.03 kB / 0.5585 GB, free: 6.094 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.912e-05/0.1313, allocations: 34.75 kB / 0.5586 GB, free: 6.051 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.239e-05/0.1313, allocations: 20.81 kB / 0.5586 GB, free: 6.031 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002919/0.1316, allocations: 196.2 kB / 0.5588 GB, free: 5.801 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.1316, allocations: 12.3 kB / 0.5588 GB, free: 5.789 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.675e-05/0.1316, allocations: 8.375 kB / 0.5588 GB, free: 5.781 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001656/0.1318, allocations: 83.28 kB / 0.5589 GB, free: 5.695 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.1318, allocations: 0 / 0.5589 GB, free: 5.695 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.578e-06/0.1318, allocations: 0 / 0.5589 GB, free: 5.695 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.1318, allocations: 0 / 0.5589 GB, free: 5.695 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.237e-05/0.1319, allocations: 35.98 kB / 0.5589 GB, free: 5.66 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005958/0.1325, allocations: 356.7 kB / 0.5592 GB, free: 5.262 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001112/0.1326, allocations: 42.56 kB / 0.5593 GB, free: 5.211 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.329e-05/0.1326, allocations: 12.89 kB / 0.5593 GB, free: 5.195 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.118e-05/0.1327, allocations: 7.938 kB / 0.5593 GB, free: 5.188 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001366/0.1328, allocations: 67.44 kB / 0.5594 GB, free: 5.109 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.803e-06/0.1328, allocations: 0 / 0.5594 GB, free: 5.109 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002469/0.133, allocations: 97.55 kB / 0.5595 GB, free: 5.008 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.979e-05/0.1331, allocations: 51.41 kB / 0.5595 GB, free: 4.945 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/0.1332, allocations: 135.9 kB / 0.5596 GB, free: 4.805 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.245e-05/0.1333, allocations: 33.64 kB / 0.5597 GB, free: 4.766 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.072e-05/0.1333, allocations: 100.1 kB / 0.5598 GB, free: 4.664 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.029e-05/0.1333, allocations: 11.91 kB / 0.5598 GB, free: 4.652 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.954e-05/0.1334, allocations: 33.7 kB / 0.5598 GB, free: 4.613 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.1336, allocations: 318.8 kB / 0.5601 GB, free: 4.293 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.235e-05/0.1336, allocations: 15.98 kB / 0.5601 GB, free: 4.277 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.628e-05/0.1337, allocations: 38.56 kB / 0.5602 GB, free: 4.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.199e-05/0.1337, allocations: 46.83 kB / 0.5602 GB, free: 4.176 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1337, allocations: 4 kB / 0.5602 GB, free: 4.172 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001578/0.1339, allocations: 105.4 kB / 0.5603 GB, free: 4.062 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.1339, allocations: 4 kB / 0.5603 GB, free: 4.059 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.1339, allocations: 7.938 kB / 0.5603 GB, free: 4.051 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.1339, allocations: 4 kB / 0.5603 GB, free: 4.047 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.262e-05/0.134, allocations: 4 kB / 0.5603 GB, free: 4.043 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/0.134, allocations: 7.984 kB / 0.5603 GB, free: 4.035 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.379e-05/0.1341, allocations: 7.938 kB / 0.5604 GB, free: 4.027 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.594e-06/0.1341, allocations: 4 kB / 0.5604 GB, free: 4.023 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.0001012/0.1342, allocations: 125.8 kB / 0.5605 GB, free: 3.891 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.592e-05/0.1342, allocations: 8.141 kB / 0.5605 GB, free: 3.883 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.562e-05/0.1342, allocations: 20.62 kB / 0.5605 GB, free: 3.859 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.317e-05/0.1343, allocations: 7.938 kB / 0.5605 GB, free: 3.852 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.1343, allocations: 0 / 0.5605 GB, free: 3.852 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.1343, allocations: 0 / 0.5605 GB, free: 3.852 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003711/0.1346, allocations: 342.5 kB / 0.5608 GB, free: 3.461 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/0.1346, allocations: 4 kB / 0.5608 GB, free: 3.457 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.5e-05/0.1347, allocations: 7.938 kB / 0.5608 GB, free: 3.449 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.1347, allocations: 4 kB / 0.5609 GB, free: 3.445 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.1347, allocations: 0 / 0.5609 GB, free: 3.445 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.1347, allocations: 0 / 0.5609 GB, free: 3.445 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1347, allocations: 0 / 0.5609 GB, free: 3.445 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002367/0.1349, allocations: 195.4 kB / 0.561 GB, free: 3.238 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.391e-05/0.135, allocations: 85.05 kB / 0.5611 GB, free: 3.137 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.008e-05/0.135, allocations: 4.031 kB / 0.5611 GB, free: 3.133 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.69e-05/0.1351, allocations: 8.062 kB / 0.5611 GB, free: 3.125 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.709e-05/0.1352, allocations: 7.984 kB / 0.5611 GB, free: 3.117 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.033e-06/0.1352, allocations: 4 kB / 0.5611 GB, free: 3.113 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.894e-05/0.1352, allocations: 109.1 kB / 0.5612 GB, free: 3.008 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1352, allocations: 0 / 0.5612 GB, free: 3.008 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000234/0.1355, allocations: 16 kB / 0.5613 GB, free: 2.992 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.0005664/0.136, allocations: 0.7202 MB / 0.562 GB, free: 2.246 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001433/0.1362, allocations: 47.91 kB / 0.562 GB, free: 2.199 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1362, allocations: 0 / 0.562 GB, free: 2.199 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.859e-05/0.1362, allocations: 19.94 kB / 0.562 GB, free: 2.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003029/0.1365, allocations: 18.02 kB / 0.562 GB, free: 2.164 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001677/0.1382, allocations: 1.535 MB / 0.5635 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003549/0.1386, allocations: 0.6924 MB / 0.5642 GB, free: 15.82 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.435e-05/0.1386, allocations: 8.422 kB / 0.5642 GB, free: 15.81 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.544e-05/0.1387, allocations: 27.44 kB / 0.5643 GB, free: 15.79 MB / 430.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1387, allocations: 4 kB / 0.5643 GB, free: 15.78 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02486/0.1635, allocations: 2.227 MB / 0.5664 GB, free: 13.62 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.108/8.272, allocations: 11.88 kB / 0.5664 GB, free: 13.61 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000997805 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.230364345945418]