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.001166/0.001166, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001947/0.003113, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 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.0008051/0.0008051, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001026/0.001831, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 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 0.969/0.969, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1022/1.071, allocations: 53.86 MB / 243.7 MB, free: 14.92 MB / 250.7 MB " [Timeout remaining time 179] 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.2673/0.2673, allocations: 34.85 MB / 279.3 MB, free: 14.91 MB / 282.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.02323/0.2905, allocations: 13.23 MB / 292.6 MB, free: 6.477 MB / 282.7 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 1.784e-06/1.784e-06, allocations: 0 / 293.9 MB, free: 5.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.654e-05/2.832e-05, allocations: 5.625 kB / 293.9 MB, free: 5.203 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.00286/0.002888, allocations: 1.608 MB / 295.5 MB, free: 3.586 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006765/0.003565, allocations: 0.5613 MB / 296 MB, free: 3.02 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.86e-05/0.003613, allocations: 0 / 296 MB, free: 3.02 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.346e-05/0.003637, allocations: 7.922 kB / 296 MB, free: 3.012 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 4.738e-05/0.003684, allocations: 11.88 kB / 296 MB, free: 3 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001449/0.003829, allocations: 55.73 kB / 296.1 MB, free: 2.945 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001145/0.003943, allocations: 87.72 kB / 296.2 MB, free: 2.859 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.323e-05/0.004027, allocations: 11.98 kB / 296.2 MB, free: 2.848 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001592/0.004186, allocations: 79.75 kB / 296.3 MB, free: 2.77 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.944e-05/0.004255, allocations: 39.88 kB / 296.3 MB, free: 2.73 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.505e-05/0.00427, allocations: 4 kB / 296.3 MB, free: 2.727 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.925e-05/0.00433, allocations: 12 kB / 296.3 MB, free: 2.715 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.847e-05/0.004348, allocations: 12 kB / 296.3 MB, free: 2.703 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.591e-05/0.004374, allocations: 19.94 kB / 296.4 MB, free: 2.684 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001097/0.004484, allocations: 59.75 kB / 296.4 MB, free: 2.625 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.647e-05/0.0045, allocations: 4 kB / 296.4 MB, free: 2.621 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.203e-06/0.004501, allocations: 0 / 296.4 MB, free: 2.621 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.5e-05/0.004516, allocations: 0 / 296.4 MB, free: 2.621 MB / 282.7 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.0004754/0.004992, allocations: 325.5 kB / 296.7 MB, free: 2.281 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.992e-05/0.005022, allocations: 12.86 kB / 296.8 MB, free: 2.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001391/0.005161, allocations: 102 kB / 296.9 MB, free: 2.152 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001296/0.00529, allocations: 127.5 kB / 297 MB, free: 2.004 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.005312, allocations: 8.359 kB / 297 MB, free: 1.996 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.08e-05/0.005323, allocations: 8.375 kB / 297 MB, free: 1.988 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001104/0.005433, allocations: 83.41 kB / 297.1 MB, free: 1.898 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.054e-06/0.00544, allocations: 192 / 297.1 MB, free: 1.898 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.514e-06/0.005448, allocations: 384 / 297.1 MB, free: 1.898 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.005454, allocations: 7.938 kB / 297.1 MB, free: 1.891 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.176e-05/0.005485, allocations: 21.05 kB / 297.1 MB, free: 1.871 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000251/0.005736, allocations: 180.3 kB / 297.3 MB, free: 1.68 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.804e-05/0.005825, allocations: 58.53 kB / 297.3 MB, free: 1.613 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.341e-05/0.005848, allocations: 20.84 kB / 297.4 MB, free: 1.59 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.212e-05/0.00587, allocations: 4 kB / 297.4 MB, free: 1.586 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.271e-05/0.005963, allocations: 91.36 kB / 297.5 MB, free: 1.484 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.005964, allocations: 0 / 297.5 MB, free: 1.484 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.0001471/0.006111, allocations: 95.59 kB / 297.5 MB, free: 1.387 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.703e-05/0.006148, allocations: 59.39 kB / 297.6 MB, free: 1.316 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.854e-05/0.006207, allocations: 118.7 kB / 297.7 MB, free: 1.188 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.006223, allocations: 33.7 kB / 297.8 MB, free: 1.148 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.926e-05/0.006252, allocations: 92.61 kB / 297.8 MB, free: 1.051 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3e-05/0.006282, allocations: 31.73 kB / 297.9 MB, free: 1.02 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.929e-05/0.006321, allocations: 45.62 kB / 297.9 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.246e-05/0.006394, allocations: 326.8 kB / 298.2 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.997e-05/0.006414, allocations: 23.92 kB / 298.3 MB, free: 0.6172 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.75e-05/0.006451, allocations: 49.77 kB / 298.3 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.884e-05/0.00652, allocations: 82.62 kB / 298.4 MB, free: 472 kB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.006524, allocations: 4 kB / 298.4 MB, free: 468 kB / 282.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 9.552e-05/0.00662, allocations: 105.5 kB / 298.5 MB, free: 356 kB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.006633, allocations: 12.12 kB / 298.5 MB, free: 344 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.006637, allocations: 0 / 298.5 MB, free: 344 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.788e-06/0.006647, allocations: 4 kB / 298.5 MB, free: 340 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.238e-05/0.006729, allocations: 31.98 kB / 298.5 MB, free: 308 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.006733, allocations: 3.938 kB / 298.5 MB, free: 304 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.87e-05/0.006762, allocations: 11.89 kB / 298.6 MB, free: 292 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.969e-06/0.006772, allocations: 8 kB / 298.6 MB, free: 284 kB / 282.7 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 7.01e-05/0.006842, allocations: 127.8 kB / 298.7 MB, free: 144 kB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.284e-05/0.006855, allocations: 11.98 kB / 298.7 MB, free: 132 kB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.424e-05/0.006879, allocations: 12.44 kB / 298.7 MB, free: 120 kB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.006881, allocations: 4 kB / 298.7 MB, free: 116 kB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-06/0.006882, allocations: 4 kB / 298.7 MB, free: 112 kB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.006886, allocations: 0 / 298.7 MB, free: 112 kB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002344/0.00712, allocations: 246.6 kB / 299 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.007122, allocations: 0 / 299 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.975e-05/0.007151, allocations: 7.984 kB / 299 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.257e-05/0.007164, allocations: 15.89 kB / 299 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.007166, allocations: 0 / 299 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.007174, allocations: 7.984 kB / 299 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.007175, allocations: 0 / 299 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.007177, allocations: 3.938 kB / 299 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001014/0.007278, allocations: 190.3 kB / 299.2 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.638e-05/0.007295, allocations: 8 kB / 299.2 MB, free: 15.6 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.308e-05/0.007348, allocations: 7.984 kB / 299.2 MB, free: 15.59 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.065e-05/0.007378, allocations: 15.97 kB / 299.2 MB, free: 15.58 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.198e-05/0.00739, allocations: 0 / 299.2 MB, free: 15.58 MB / 298.7 MB Notification: Performance of sorting global known variables: time 1.617e-05/0.007406, allocations: 22.09 kB / 299.2 MB, free: 15.55 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007407, allocations: 0 / 299.2 MB, free: 15.55 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001316/0.007538, allocations: 24 kB / 299.3 MB, free: 15.53 MB / 298.7 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 8.167e-05/0.00762, allocations: 84.91 kB / 299.3 MB, free: 15.44 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.948e-05/0.007719, allocations: 72.7 kB / 299.4 MB, free: 15.37 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/0.007726, allocations: 3.984 kB / 299.4 MB, free: 15.36 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.956e-05/0.007766, allocations: 36.78 kB / 299.5 MB, free: 15.32 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001559/0.007922, allocations: 19.98 kB / 299.5 MB, free: 15.3 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007883/0.00871, allocations: 205.8 kB / 299.7 MB, free: 15.08 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.167e-05/0.008751, allocations: 63.34 kB / 299.7 MB, free: 15 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.754e-05/0.008789, allocations: 17.22 kB / 299.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.481e-05/0.008854, allocations: 67.36 kB / 299.8 MB, free: 14.91 MB / 298.7 MB Notification: Performance of SimCode: time 9.22e-07/0.008855, allocations: 0 / 299.8 MB, free: 14.91 MB / 298.7 MB Notification: Performance of Templates: time 0.003092/0.01195, allocations: 1.151 MB / 301 MB, free: 13.8 MB / 298.7 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8226831657812]