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.0008633/0.0008634, allocations: 93.38 kB / 17 MB, free: 6.797 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009854/0.0009854, allocations: 199.9 kB / 17.91 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.485/1.485, allocations: 227.3 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2031/0.2031, allocations: 45.91 MB / 344.1 MB, free: 11.98 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002682/0.0002682, allocations: 8 kB / 418.2 MB, free: 20.72 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1177/0.118, allocations: 63.47 MB / 481.6 MB, free: 5.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.FirstOrderHold): time 0.001572/0.1196, allocations: 1.24 MB / 482.9 MB, free: 3.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007916/0.1204, allocations: 0.4991 MB / 483.4 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.732e-05/0.1205, allocations: 0 / 483.4 MB, free: 3.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.811e-05/0.1205, allocations: 3.938 kB / 483.4 MB, free: 3.473 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.879e-05/0.1206, allocations: 7.922 kB / 483.4 MB, free: 3.465 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001739/0.1208, allocations: 35.89 kB / 483.4 MB, free: 3.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001045/0.1209, allocations: 79.78 kB / 483.5 MB, free: 3.352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.501e-05/0.121, allocations: 15.97 kB / 483.5 MB, free: 3.336 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001345/0.1211, allocations: 39.84 kB / 483.6 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.706e-05/0.1212, allocations: 39.83 kB / 483.6 MB, free: 3.258 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.59e-05/0.1212, allocations: 4 kB / 483.6 MB, free: 3.254 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.959e-05/0.1213, allocations: 4 kB / 483.6 MB, free: 3.25 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.497e-05/0.1213, allocations: 23.91 kB / 483.6 MB, free: 3.227 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.497e-05/0.1213, allocations: 33.7 kB / 483.7 MB, free: 3.188 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.639e-05/0.1214, allocations: 56.11 kB / 483.7 MB, free: 3.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1215, allocations: 4 kB / 483.7 MB, free: 3.129 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1215, allocations: 0 / 483.7 MB, free: 3.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.246e-06/0.1215, allocations: 0 / 483.7 MB, free: 3.129 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.000601/0.1221, allocations: 395.1 kB / 484.1 MB, free: 2.695 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.814e-05/0.1221, allocations: 16.03 kB / 484.1 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.949e-05/0.1222, allocations: 34.55 kB / 484.1 MB, free: 2.637 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001267/0.1223, allocations: 19.89 kB / 484.2 MB, free: 2.617 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/0.1225, allocations: 182.8 kB / 484.3 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.1225, allocations: 7.938 kB / 484.4 MB, free: 2.391 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.979e-05/0.1225, allocations: 15.98 kB / 484.4 MB, free: 2.375 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002008/0.1227, allocations: 81.64 kB / 484.4 MB, free: 2.289 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.1227, allocations: 4 kB / 484.5 MB, free: 2.285 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.447e-05/0.1228, allocations: 8 kB / 484.5 MB, free: 2.277 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.1228, allocations: 0 / 484.5 MB, free: 2.277 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001432/0.1229, allocations: 51.91 kB / 484.5 MB, free: 2.227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005167/0.1234, allocations: 336.7 kB / 484.8 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000204/0.1237, allocations: 94.53 kB / 484.9 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.675e-05/0.1238, allocations: 44.84 kB / 485 MB, free: 1.699 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.358e-05/0.1238, allocations: 4 kB / 485 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002088/0.124, allocations: 111.3 kB / 485.1 MB, free: 1.574 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.533e-06/0.124, allocations: 4 kB / 485.1 MB, free: 1.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004354/0.1245, allocations: 201.7 kB / 485.3 MB, free: 1.367 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.883e-05/0.1245, allocations: 63.36 kB / 485.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.795e-05/0.1246, allocations: 114 kB / 485.5 MB, free: 1.172 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.424e-05/0.1246, allocations: 33.7 kB / 485.5 MB, free: 1.133 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.405e-05/0.1247, allocations: 96.33 kB / 485.6 MB, free: 1.031 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.3e-05/0.1247, allocations: 31.55 kB / 485.6 MB, free: 1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.744e-06/0.1247, allocations: 4 kB / 485.6 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.1249, allocations: 322.8 kB / 485.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.15e-05/0.125, allocations: 48.3 kB / 486 MB, free: 0.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001103/0.1251, allocations: 77 kB / 486.1 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001016/0.1252, allocations: 48 kB / 486.1 MB, free: 500 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1252, allocations: 0 / 486.1 MB, free: 500 kB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003145/0.1255, allocations: 172.8 kB / 486.3 MB, free: 324 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.1255, allocations: 6.188 kB / 486.3 MB, free: 320 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.1256, allocations: 4.344 kB / 486.3 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.177e-05/0.1256, allocations: 4 kB / 486.3 MB, free: 312 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000111/0.1257, allocations: 23.92 kB / 486.3 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.359e-05/0.1257, allocations: 16.27 kB / 486.3 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.924e-05/0.1258, allocations: 11.94 kB / 486.3 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.1258, allocations: 8 kB / 486.4 MB, free: 252 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 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,$PRE.zeroOrderHold.ySample,zeroOrderHold.ySample,$PRE.firstOrderHold.tSample,firstOrderHold.tSample,$PRE.firstOrderHold.uSample,firstOrderHold.uSample,$PRE.firstOrderHold.pre_uSample,firstOrderHold.pre_uSample,$PRE.firstOrderHold.c,firstOrderHold.c) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001051/0.1259, allocations: 132.1 kB / 486.5 MB, free: 112 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.564e-05/0.1259, allocations: 11.84 kB / 486.5 MB, free: 100 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.69e-05/0.126, allocations: 12.5 kB / 486.5 MB, free: 92 kB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.126, allocations: 4 kB / 486.5 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.126, allocations: 0 / 486.5 MB, free: 88 kB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.126, allocations: 3.953 kB / 486.5 MB, free: 84 kB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005473/0.1265, allocations: 454.3 kB / 487 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.105e-06/0.1266, allocations: 4 kB / 487 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.985e-05/0.1266, allocations: 11.98 kB / 487 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.1266, allocations: 4 kB / 487 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.1266, allocations: 0 / 487 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.1266, allocations: 7.891 kB / 487 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.1267, allocations: 0 / 487 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003106/0.127, allocations: 259.4 kB / 487.2 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.168e-05/0.127, allocations: 92.94 kB / 487.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.341e-05/0.127, allocations: 0 / 487.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.1272, allocations: 11.98 kB / 487.3 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.863e-05/0.1272, allocations: 19.94 kB / 487.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.1272, allocations: 4 kB / 487.4 MB, free: 15.14 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.705e-05/0.1273, allocations: 91.27 kB / 487.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1273, allocations: 0 / 487.5 MB, free: 15.05 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002367/0.1275, allocations: 24 kB / 487.5 MB, free: 15.03 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005808/0.1281, allocations: 0.7918 MB / 488.3 MB, free: 14.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000246/0.1284, allocations: 119 kB / 488.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1284, allocations: 0 / 488.4 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001116/0.1285, allocations: 55.91 kB / 488.4 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002565/0.1288, allocations: 18.77 kB / 488.5 MB, free: 14.02 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009864/0.1298, allocations: 0.6717 MB / 489.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002123/0.13, allocations: 0.6926 MB / 489.8 MB, free: 12.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.194e-05/0.13, allocations: 16.88 kB / 489.8 MB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.127e-05/0.1301, allocations: 27.38 kB / 489.9 MB, free: 12.52 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1301, allocations: 0 / 489.9 MB, free: 12.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01192/0.142, allocations: 1.913 MB / 491.8 MB, free: 10.71 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002081/0.1423, allocations: 177.7 kB / 491.9 MB, free: 10.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.795/1.937, allocations: 4 kB / 492 MB, free: 10.46 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat