Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001268/0.001268, allocations: 96.81 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001674/0.001674, allocations: 201 kB / 18.28 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.671/1.671, allocations: 227.8 MB / 246.9 MB, free: 11.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2037/0.2037, allocations: 46.18 MB / 345.3 MB, free: 11.37 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.000293/0.000293, allocations: 11.98 kB / 419.6 MB, free: 19.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1198, allocations: 63.55 MB / 483.2 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001788/0.1216, allocations: 1.264 MB / 484.4 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009516/0.1226, allocations: 0.5378 MB / 485 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.02e-05/0.1227, allocations: 0 / 485 MB, free: 2.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.928e-05/0.1227, allocations: 11.86 kB / 485 MB, free: 2.289 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.88e-05/0.1228, allocations: 15.92 kB / 485 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001873/0.123, allocations: 39.91 kB / 485 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000132/0.1231, allocations: 87.75 kB / 485.1 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.086e-05/0.1232, allocations: 11.98 kB / 485.1 MB, free: 2.137 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001376/0.1234, allocations: 47.77 kB / 485.2 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.17e-05/0.1235, allocations: 35.84 kB / 485.2 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.647e-05/0.1235, allocations: 4 kB / 485.2 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.411e-05/0.1236, allocations: 12 kB / 485.2 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.45e-05/0.1236, allocations: 19.92 kB / 485.2 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.905e-05/0.1237, allocations: 69.47 kB / 485.3 MB, free: 1.945 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001301/0.1238, allocations: 68.03 kB / 485.4 MB, free: 1.879 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.686e-06/0.1238, allocations: 0 / 485.4 MB, free: 1.879 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1238, allocations: 0 / 485.4 MB, free: 1.879 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.537e-06/0.1238, allocations: 0 / 485.4 MB, free: 1.879 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.0006882/0.1245, allocations: 403.2 kB / 485.8 MB, free: 1.438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.611e-05/0.1246, allocations: 12.81 kB / 485.8 MB, free: 1.426 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001427/0.1247, allocations: 20.83 kB / 485.8 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002055/0.1249, allocations: 184.2 kB / 486 MB, free: 1.188 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.608e-05/0.125, allocations: 12.36 kB / 486 MB, free: 1.176 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.065e-05/0.125, allocations: 4.375 kB / 486 MB, free: 1.172 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002232/0.1252, allocations: 101.1 kB / 486.1 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.1252, allocations: 0 / 486.1 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.249e-05/0.1253, allocations: 0 / 486.1 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.1253, allocations: 4 kB / 486.1 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001611/0.1254, allocations: 51.91 kB / 486.1 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005663/0.126, allocations: 348.7 kB / 486.5 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002247/0.1262, allocations: 94.53 kB / 486.6 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.1264, allocations: 56.83 kB / 486.6 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.11e-05/0.1264, allocations: 0 / 486.6 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002304/0.1266, allocations: 107.5 kB / 486.7 MB, free: 356 kB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.1266, allocations: 3.938 kB / 486.7 MB, free: 352 kB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004963/0.1271, allocations: 201.5 kB / 486.9 MB, free: 144 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.347e-05/0.1272, allocations: 59.39 kB / 487 MB, free: 72 kB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000116/0.1273, allocations: 114 kB / 487.1 MB, free: 15.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.1274, allocations: 33.7 kB / 487.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.106e-05/0.1274, allocations: 96.41 kB / 487.2 MB, free: 15.81 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.989e-05/0.1275, allocations: 31.55 kB / 487.3 MB, free: 15.78 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.204e-05/0.1275, allocations: 29.7 kB / 487.3 MB, free: 15.74 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.1277, allocations: 326.8 kB / 487.6 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001131/0.1278, allocations: 43.97 kB / 487.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000138/0.128, allocations: 84.2 kB / 487.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002515/0.1282, allocations: 127 kB / 487.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1282, allocations: 0 / 487.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000325/0.1286, allocations: 169.4 kB / 488 MB, free: 14.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.1286, allocations: 7.938 kB / 488 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.1286, allocations: 4 kB / 488 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.1286, allocations: 0 / 488 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.1287, allocations: 19.98 kB / 488.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.143e-06/0.1288, allocations: 7.938 kB / 488.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.271e-05/0.1288, allocations: 23.97 kB / 488.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.297e-05/0.1289, allocations: 4 kB / 488.1 MB, free: 14.9 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.0001411/0.129, allocations: 132 kB / 488.2 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.913e-05/0.129, allocations: 7.906 kB / 488.2 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.542e-05/0.1291, allocations: 12.48 kB / 488.2 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.1291, allocations: 4 kB / 488.2 MB, free: 14.74 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/0.1291, allocations: 3.938 kB / 488.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.1291, allocations: 0 / 488.3 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006611/0.1298, allocations: 462.3 kB / 488.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1298, allocations: 0 / 488.7 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.846e-05/0.1298, allocations: 11.98 kB / 488.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.1299, allocations: 7.875 kB / 488.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.074e-05/0.1299, allocations: 0 / 488.7 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.133e-06/0.1299, allocations: 7.984 kB / 488.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1299, allocations: 4 kB / 488.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003798/0.1303, allocations: 266.6 kB / 489 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.43e-05/0.1304, allocations: 92.89 kB / 489.1 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.384e-05/0.1304, allocations: 4 kB / 489.1 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001188/0.1305, allocations: 15.98 kB / 489.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.023e-05/0.1306, allocations: 7.984 kB / 489.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.846e-05/0.1306, allocations: 8 kB / 489.1 MB, free: 13.78 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.425e-05/0.1306, allocations: 95.27 kB / 489.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1307, allocations: 0 / 489.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002494/0.1309, allocations: 20 kB / 489.2 MB, free: 13.66 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.0001279/0.131, allocations: 99.72 kB / 489.3 MB, free: 13.56 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003023/0.1314, allocations: 123.8 kB / 489.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1314, allocations: 0 / 489.4 MB, free: 13.44 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001331/0.1315, allocations: 51.98 kB / 489.5 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002811/0.1318, allocations: 14.48 kB / 489.5 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004693/0.1323, allocations: 241.6 kB / 489.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003565/0.1326, allocations: 0.6926 MB / 490.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.239e-05/0.1327, allocations: 16.81 kB / 490.5 MB, free: 12.38 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.474e-05/0.1327, allocations: 15.44 kB / 490.5 MB, free: 12.36 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1327, allocations: 3.938 kB / 490.5 MB, free: 12.36 MB / 366.1 MB Notification: Performance of Templates: time 0.003593/0.1363, allocations: 0.9342 MB / 491.4 MB, free: 11.43 MB / 366.1 MB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches