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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|firstOrderHold.c|firstOrderHold.firstTrigger|firstOrderHold.pre_uSample|firstOrderHold.tSample|firstOrderHold.uSample|zeroOrderHold.firstTrigger|zeroOrderHold.ySample",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000895/0.0008951, allocations: 94.81 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009863/0.0009863, allocations: 203 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.399/1.399, allocations: 227.7 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.227/0.227, allocations: 46.19 MB / 345.2 MB, free: 11.41 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002907/0.0002909, allocations: 8 kB / 419.5 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1061, allocations: 63.56 MB / 483.1 MB, free: 4.188 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.00201/0.1081, allocations: 1.267 MB / 484.3 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001295/0.1095, allocations: 0.53 MB / 484.9 MB, free: 2.375 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.1096, allocations: 15.88 kB / 484.9 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.967e-05/0.1096, allocations: 0 / 484.9 MB, free: 2.359 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000111/0.1098, allocations: 11.86 kB / 484.9 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003016/0.1101, allocations: 39.95 kB / 484.9 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001577/0.1102, allocations: 83.77 kB / 485 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.1104, allocations: 15.98 kB / 485 MB, free: 2.211 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001922/0.1106, allocations: 43.77 kB / 485.1 MB, free: 2.168 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001247/0.1107, allocations: 43.83 kB / 485.1 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.477e-05/0.1107, allocations: 4 kB / 485.1 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.289e-05/0.1108, allocations: 15.94 kB / 485.1 MB, free: 2.105 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.838e-05/0.1108, allocations: 15.92 kB / 485.2 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.374e-05/0.1109, allocations: 65.48 kB / 485.2 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001456/0.1111, allocations: 72.02 kB / 485.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1111, allocations: 0 / 485.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.875e-06/0.1111, allocations: 0 / 485.3 MB, free: 1.949 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.1111, allocations: 0 / 485.3 MB, free: 1.949 MB / 350.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.0006953/0.1118, allocations: 403.2 kB / 485.7 MB, free: 1.508 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.661e-05/0.1119, allocations: 8.875 kB / 485.7 MB, free: 1.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001693/0.112, allocations: 24.83 kB / 485.7 MB, free: 1.477 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002249/0.1123, allocations: 188.2 kB / 485.9 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.722e-05/0.1123, allocations: 12.36 kB / 485.9 MB, free: 1.242 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.328e-05/0.1124, allocations: 8.375 kB / 485.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000246/0.1126, allocations: 93.95 kB / 486 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.103e-06/0.1126, allocations: 0 / 486 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.1126, allocations: 0 / 486 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.1127, allocations: 0 / 486 MB, free: 1.137 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001547/0.1128, allocations: 55.97 kB / 486.1 MB, free: 1.082 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005713/0.1134, allocations: 336.6 kB / 486.4 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002398/0.1136, allocations: 106.5 kB / 486.5 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001176/0.1138, allocations: 48.84 kB / 486.5 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.071e-05/0.1138, allocations: 4.203 kB / 486.6 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000257/0.1141, allocations: 107.3 kB / 486.7 MB, free: 428 kB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.904e-06/0.1141, allocations: 0 / 486.7 MB, free: 428 kB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005219/0.1146, allocations: 208.6 kB / 486.9 MB, free: 216 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/0.1147, allocations: 55.41 kB / 486.9 MB, free: 148 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.1148, allocations: 122 kB / 487 MB, free: 16 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.864e-05/0.1149, allocations: 33.7 kB / 487.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.795e-05/0.1149, allocations: 92.41 kB / 487.2 MB, free: 15.88 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.708e-05/0.115, allocations: 35.56 kB / 487.2 MB, free: 15.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.89e-05/0.1151, allocations: 25.7 kB / 487.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.1152, allocations: 326.8 kB / 487.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.1153, allocations: 35.98 kB / 487.6 MB, free: 15.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001306/0.1154, allocations: 84.27 kB / 487.7 MB, free: 15.35 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002383/0.1157, allocations: 128.1 kB / 487.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.1157, allocations: 4 kB / 487.8 MB, free: 15.21 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003194/0.116, allocations: 157.5 kB / 487.9 MB, free: 15.05 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.1161, allocations: 10.34 kB / 487.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.1161, allocations: 0 / 487.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.1161, allocations: 4 kB / 488 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/0.1162, allocations: 32.05 kB / 488 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.546e-06/0.1163, allocations: 3.938 kB / 488 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.181e-05/0.1163, allocations: 19.78 kB / 488 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.389e-05/0.1164, allocations: 8 kB / 488 MB, free: 14.97 MB / 366.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.0001261/0.1165, allocations: 136 kB / 488.1 MB, free: 14.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.933e-05/0.1165, allocations: 7.906 kB / 488.2 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.488e-05/0.1166, allocations: 12.5 kB / 488.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.805e-06/0.1166, allocations: 0 / 488.2 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.1166, allocations: 7.938 kB / 488.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.107e-06/0.1166, allocations: 0 / 488.2 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006042/0.1172, allocations: 457.6 kB / 488.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.1172, allocations: 0 / 488.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.65e-05/0.1173, allocations: 19.92 kB / 488.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.178e-06/0.1173, allocations: 3.938 kB / 488.6 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.375e-05/0.1173, allocations: 8 kB / 488.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.1173, allocations: 0 / 488.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1173, allocations: 0 / 488.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00037/0.1177, allocations: 255.4 kB / 488.9 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.757e-05/0.1178, allocations: 96.88 kB / 489 MB, free: 13.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.708e-05/0.1178, allocations: 15.94 kB / 489 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.1179, allocations: 11.98 kB / 489 MB, free: 13.87 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.291e-05/0.118, allocations: 7.984 kB / 489 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.107e-05/0.118, allocations: 4 kB / 489 MB, free: 13.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.489e-05/0.1181, allocations: 95.7 kB / 489.1 MB, free: 13.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1181, allocations: 0 / 489.1 MB, free: 13.76 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002649/0.1183, allocations: 24 kB / 489.2 MB, free: 13.74 MB / 366.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.0001228/0.1185, allocations: 99.72 kB / 489.2 MB, free: 13.63 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002891/0.1188, allocations: 115.9 kB / 489.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1188, allocations: 0 / 489.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.1189, allocations: 55.92 kB / 489.4 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002888/0.1192, allocations: 16.56 kB / 489.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004432/0.1197, allocations: 229.4 kB / 489.7 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002909/0.12, allocations: 0.7004 MB / 490.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.484e-05/0.12, allocations: 8.891 kB / 490.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.847e-05/0.1201, allocations: 19.42 kB / 490.4 MB, free: 12.44 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1201, allocations: 4 kB / 490.4 MB, free: 12.44 MB / 366.1 MB Notification: Performance of Templates: time 0.003407/0.1235, allocations: 0.9428 MB / 491.3 MB, free: 11.5 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.makefile (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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches