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: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001158/0.001158, allocations: 103.4 kB / 17.2 MB, free: 6.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001186/0.001186, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.454/1.454, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2196/0.2196, allocations: 46.11 MB / 343.6 MB, free: 11.82 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001536, allocations: 79.77 kB / 416.9 MB, free: 20.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1117, allocations: 62.44 MB / 479.4 MB, free: 5.668 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.003319/0.1151, allocations: 1.614 MB / 481 MB, free: 4.039 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001085/0.1162, allocations: 0.5454 MB / 481.5 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.547e-05/0.1163, allocations: 0 / 481.5 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.412e-05/0.1164, allocations: 3.938 kB / 481.5 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.811e-05/0.1165, allocations: 19.86 kB / 481.6 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002335/0.1167, allocations: 39.95 kB / 481.6 MB, free: 3.426 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001842/0.1169, allocations: 83.77 kB / 481.7 MB, free: 3.344 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.695e-05/0.117, allocations: 11.98 kB / 481.7 MB, free: 3.332 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001645/0.1172, allocations: 43.78 kB / 481.7 MB, free: 3.289 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.927e-05/0.1173, allocations: 43.83 kB / 481.8 MB, free: 3.246 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.03e-05/0.1173, allocations: 4 kB / 481.8 MB, free: 3.242 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.659e-05/0.1174, allocations: 8 kB / 481.8 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.627e-05/0.1174, allocations: 23.91 kB / 481.8 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.264e-05/0.1175, allocations: 35.8 kB / 481.9 MB, free: 3.176 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001489/0.1176, allocations: 75.98 kB / 481.9 MB, free: 3.102 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1176, allocations: 0 / 481.9 MB, free: 3.102 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1176, allocations: 0 / 481.9 MB, free: 3.102 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.1176, allocations: 0 / 481.9 MB, free: 3.102 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.0006883/0.1183, allocations: 407.3 kB / 482.3 MB, free: 2.656 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.673e-05/0.1184, allocations: 8.875 kB / 482.3 MB, free: 2.648 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.929e-05/0.1184, allocations: 42.73 kB / 482.4 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001577/0.1186, allocations: 16.83 kB / 482.4 MB, free: 2.582 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002156/0.1188, allocations: 196.1 kB / 482.6 MB, free: 2.352 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.1189, allocations: 8.375 kB / 482.6 MB, free: 2.344 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.09e-05/0.1189, allocations: 8.375 kB / 482.6 MB, free: 2.336 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002417/0.1191, allocations: 93.77 kB / 482.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.1191, allocations: 0 / 482.7 MB, free: 2.238 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.1192, allocations: 7.938 kB / 482.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.995e-06/0.1192, allocations: 0 / 482.7 MB, free: 2.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001617/0.1194, allocations: 47.97 kB / 482.7 MB, free: 2.184 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005716/0.1199, allocations: 332.6 kB / 483.1 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002336/0.1202, allocations: 94.53 kB / 483.2 MB, free: 1.707 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.1203, allocations: 49.05 kB / 483.2 MB, free: 1.656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.998e-05/0.1203, allocations: 7.938 kB / 483.2 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002574/0.1206, allocations: 102.7 kB / 483.3 MB, free: 1.539 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.583e-06/0.1206, allocations: 0 / 483.3 MB, free: 1.539 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005341/0.1211, allocations: 197.6 kB / 483.5 MB, free: 1.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.842e-05/0.1212, allocations: 59.39 kB / 483.6 MB, free: 1.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001078/0.1213, allocations: 121.8 kB / 483.7 MB, free: 1.141 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.711e-05/0.1214, allocations: 33.7 kB / 483.7 MB, free: 1.102 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.632e-05/0.1214, allocations: 96.31 kB / 483.8 MB, free: 1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.08e-05/0.1215, allocations: 35.55 kB / 483.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.841e-05/0.1216, allocations: 33.72 kB / 483.9 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001267/0.1217, allocations: 326.8 kB / 484.2 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001095/0.1218, allocations: 43.97 kB / 484.2 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001179/0.1219, allocations: 72.27 kB / 484.3 MB, free: 480 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002185/0.1222, allocations: 120.2 kB / 484.4 MB, free: 344 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1222, allocations: 3.938 kB / 484.4 MB, free: 340 kB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002896/0.1225, allocations: 160.9 kB / 484.6 MB, free: 176 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.018e-05/0.1225, allocations: 8 kB / 484.6 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.091e-06/0.1225, allocations: 0 / 484.6 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.68e-05/0.1225, allocations: 0 / 484.6 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.1226, allocations: 27.98 kB / 484.6 MB, free: 140 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.177e-06/0.1227, allocations: 8 kB / 484.6 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.675e-05/0.1227, allocations: 19.83 kB / 484.7 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.533e-05/0.1228, allocations: 8 kB / 484.7 MB, free: 104 kB / 350.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.0001361/0.1229, allocations: 128 kB / 484.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.957e-05/0.123, allocations: 7.906 kB / 484.8 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.325e-05/0.123, allocations: 12.5 kB / 484.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.123, allocations: 3.938 kB / 484.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.095e-06/0.123, allocations: 3.984 kB / 484.8 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/0.123, allocations: 8 kB / 484.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005787/0.1236, allocations: 442.4 kB / 485.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.1236, allocations: 3.938 kB / 485.3 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.467e-05/0.1237, allocations: 11.98 kB / 485.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.1237, allocations: 0 / 485.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.3e-05/0.1237, allocations: 0 / 485.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.1237, allocations: 0 / 485.3 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.1237, allocations: 7.984 kB / 485.3 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003517/0.1241, allocations: 259.3 kB / 485.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.681e-05/0.1242, allocations: 92.89 kB / 485.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.066e-05/0.1242, allocations: 4 kB / 485.6 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001136/0.1243, allocations: 11.92 kB / 485.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.891e-05/0.1244, allocations: 11.98 kB / 485.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.027e-05/0.1244, allocations: 4 kB / 485.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.192e-05/0.1245, allocations: 95.27 kB / 485.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1245, allocations: 0 / 485.7 MB, free: 14.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002629/0.1247, allocations: 24 kB / 485.8 MB, free: 14.89 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.0006455/0.1254, allocations: 0.7986 MB / 486.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002789/0.1257, allocations: 114.9 kB / 486.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1257, allocations: 0 / 486.7 MB, free: 13.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001218/0.1258, allocations: 47.98 kB / 486.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002763/0.1261, allocations: 15.98 kB / 486.7 MB, free: 13.9 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00196/0.1281, allocations: 1.659 MB / 488.4 MB, free: 12.13 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002603/0.1283, allocations: 0.6926 MB / 489.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.717e-05/0.1284, allocations: 12.88 kB / 489.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.321e-05/0.1285, allocations: 23.42 kB / 489.1 MB, free: 11.38 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1285, allocations: 0 / 489.1 MB, free: 11.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01225/0.1407, allocations: 2.006 MB / 491.1 MB, free: 9.438 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001723/0.1409, allocations: 193.2 kB / 491.3 MB, free: 9.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.762/1.903, allocations: 0 / 491.3 MB, free: 9.18 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/FirstOrderHold/FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches