Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.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.001778/0.001778, allocations: 111.8 kB / 19.13 MB, free: 3.922 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.002082/0.002082, allocations: 208.9 kB / 22.08 MB, free: 0.9727 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.539/1.539, allocations: 227.4 MB / 252.3 MB, free: 88 kB / 190.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.2502/0.2502, allocations: 46.17 MB / 351.8 MB, free: 14.28 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: translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold") translateModel(ModelicaTest.Blocks.FirstOrderHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5041,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002369/0.002369, allocations: 81.7 kB / 490.9 MB, free: 28.14 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1365, allocations: 62.45 MB / 0.5403 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.002978/0.1395, allocations: 1.548 MB / 0.5419 GB, free: 2.688 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.1406, allocations: 0.5493 MB / 0.5424 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.055e-05/0.1407, allocations: 0 / 0.5424 GB, free: 2.133 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 3.935e-05/0.1408, allocations: 11.86 kB / 0.5424 GB, free: 2.121 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 8.648e-05/0.1409, allocations: 11.86 kB / 0.5424 GB, free: 2.109 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002466/0.1411, allocations: 51.89 kB / 0.5425 GB, free: 2.059 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001642/0.1413, allocations: 95.69 kB / 0.5426 GB, free: 1.965 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001137/0.1414, allocations: 11.98 kB / 0.5426 GB, free: 1.953 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001685/0.1416, allocations: 47.84 kB / 0.5426 GB, free: 1.906 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.679e-05/0.1417, allocations: 43.77 kB / 0.5427 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.363e-05/0.1417, allocations: 8 kB / 0.5427 GB, free: 1.855 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.827e-05/0.1418, allocations: 8 kB / 0.5427 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.233e-05/0.1418, allocations: 27.91 kB / 0.5427 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.865e-05/0.1419, allocations: 39.8 kB / 0.5427 GB, free: 1.781 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001713/0.1421, allocations: 83.58 kB / 0.5428 GB, free: 1.699 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1421, allocations: 4 kB / 0.5428 GB, free: 1.695 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1421, allocations: 0 / 0.5428 GB, free: 1.695 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.619e-06/0.1421, allocations: 0 / 0.5428 GB, free: 1.695 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.000725/0.1428, allocations: 414 kB / 0.5432 GB, free: 1.246 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.1429, allocations: 8.031 kB / 0.5432 GB, free: 1.238 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001533/0.143, allocations: 16.89 kB / 0.5432 GB, free: 1.223 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000214/0.1432, allocations: 192.2 kB / 0.5434 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.517e-05/0.1433, allocations: 4.375 kB / 0.5434 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.666e-05/0.1433, allocations: 12.36 kB / 0.5434 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002171/0.1435, allocations: 101.8 kB / 0.5435 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.257e-06/0.1435, allocations: 0 / 0.5435 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.246e-05/0.1436, allocations: 0 / 0.5435 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.1436, allocations: 0 / 0.5435 GB, free: 0.875 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001446/0.1437, allocations: 47.97 kB / 0.5436 GB, free: 0.8281 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005592/0.1443, allocations: 332.7 kB / 0.5439 GB, free: 464 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000226/0.1445, allocations: 98.52 kB / 0.544 GB, free: 356 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.1446, allocations: 44.78 kB / 0.544 GB, free: 308 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.31e-05/0.1447, allocations: 4 kB / 0.544 GB, free: 304 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001982/0.1449, allocations: 107.3 kB / 0.5441 GB, free: 184 kB / 398.1 MB Notification: Performance of pre-optimization done (n=14): time 1.362e-06/0.1449, allocations: 0 / 0.5441 GB, free: 184 kB / 398.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005315/0.1454, allocations: 195.6 kB / 0.5443 GB, free: 15.98 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.001e-05/0.1455, allocations: 55.41 kB / 0.5444 GB, free: 15.91 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.1456, allocations: 121.7 kB / 0.5445 GB, free: 15.79 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.774e-05/0.1457, allocations: 37.7 kB / 0.5445 GB, free: 15.75 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.57e-05/0.1457, allocations: 96.38 kB / 0.5446 GB, free: 15.64 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.305e-05/0.1458, allocations: 35.72 kB / 0.5447 GB, free: 15.61 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.886e-05/0.1459, allocations: 37.7 kB / 0.5447 GB, free: 15.57 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.146, allocations: 326.8 kB / 0.545 GB, free: 15.24 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001048/0.1461, allocations: 39.97 kB / 0.545 GB, free: 15.2 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001351/0.1463, allocations: 76.27 kB / 0.5451 GB, free: 15.11 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002197/0.1465, allocations: 112.2 kB / 0.5452 GB, free: 14.98 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.1465, allocations: 4 kB / 0.5452 GB, free: 14.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003123/0.1468, allocations: 168.6 kB / 0.5454 GB, free: 14.81 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.1469, allocations: 8.219 kB / 0.5454 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.1469, allocations: 0 / 0.5454 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.1469, allocations: 7.938 kB / 0.5454 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001157/0.147, allocations: 19.92 kB / 0.5454 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.147, allocations: 11.88 kB / 0.5454 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.449e-05/0.1471, allocations: 15.89 kB / 0.5454 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.408e-05/0.1471, allocations: 4.125 kB / 0.5455 GB, free: 14.75 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 (firstOrderHold.firstTrigger,$PRE.firstOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.sampleTrigger,$whenCondition1,firstOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.c,$PRE.firstOrderHold.c,firstOrderHold.pre_uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.uSample,$PRE.firstOrderHold.uSample,firstOrderHold.tSample,$PRE.firstOrderHold.tSample,zeroOrderHold.ySample,$PRE.zeroOrderHold.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001218/0.1473, allocations: 140.1 kB / 0.5456 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.845e-05/0.1473, allocations: 7.953 kB / 0.5456 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.102e-05/0.1473, allocations: 8.5 kB / 0.5456 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.1473, allocations: 4 kB / 0.5456 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.1473, allocations: 3.938 kB / 0.5456 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.387e-06/0.1473, allocations: 0 / 0.5456 GB, free: 14.58 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006249/0.148, allocations: 446.4 kB / 0.546 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.893e-06/0.148, allocations: 4 kB / 0.546 GB, free: 14.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.77e-05/0.1481, allocations: 15.92 kB / 0.5461 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.916e-06/0.1481, allocations: 0 / 0.5461 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.1481, allocations: 0 / 0.5461 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.254e-06/0.1481, allocations: 4 kB / 0.5461 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.1481, allocations: 3.938 kB / 0.5461 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003803/0.1485, allocations: 259.4 kB / 0.5463 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.635e-05/0.1486, allocations: 96.94 kB / 0.5464 GB, free: 13.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.564e-05/0.1486, allocations: 4 kB / 0.5464 GB, free: 13.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.1487, allocations: 7.984 kB / 0.5464 GB, free: 13.66 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.403e-05/0.1488, allocations: 11.98 kB / 0.5464 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.856e-05/0.1488, allocations: 4 kB / 0.5464 GB, free: 13.65 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.538e-05/0.1489, allocations: 95.27 kB / 0.5465 GB, free: 13.55 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1489, allocations: 0 / 0.5465 GB, free: 13.55 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002475/0.1491, allocations: 20 kB / 0.5465 GB, free: 13.54 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (firstOrderHold.sampleTrigger,zeroOrderHold.sampleTrigger,$whenCondition2,$whenCondition1,zeroOrderHold.firstTrigger,zeroOrderHold.ySample,firstOrderHold.firstTrigger,firstOrderHold.tSample,firstOrderHold.uSample,firstOrderHold.pre_uSample,firstOrderHold.c) * Number of discrete states: 3 (zeroOrderHold.ySample,firstOrderHold.uSample,firstOrderHold.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.0001233/0.1492, allocations: 107.2 kB / 0.5466 GB, free: 13.42 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003208/0.1496, allocations: 103.9 kB / 0.5467 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1496, allocations: 0 / 0.5467 GB, free: 13.32 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001423/0.1497, allocations: 65.91 kB / 0.5468 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.000276/0.15, allocations: 13.48 kB / 0.5468 GB, free: 13.25 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004882/0.1505, allocations: 237.3 kB / 0.547 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/0.1509, allocations: 0.6924 MB / 0.5477 GB, free: 12.26 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.308e-05/0.1509, allocations: 15.44 kB / 0.5477 GB, free: 12.24 MB / 414.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1509, allocations: 0 / 0.5477 GB, free: 12.24 MB / 414.1 MB Notification: Performance of Templates: time 0.003383/0.1543, allocations: 1.269 MB / 0.549 GB, free: 10.97 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.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: 7.511832393007353]