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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001483/0.001483, allocations: 200.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.572/1.572, allocations: 227.2 MB / 245 MB, free: 7.621 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009971/0.0009968, allocations: 104.1 kB / 297.3 MB, free: 6.195 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3488/0.3488, allocations: 45.24 MB / 394.7 MB, free: 31.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002623/0.0002623, allocations: 8 kB / 468.5 MB, free: 7.633 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3425/0.3428, allocations: 63.23 MB / 0.5193 GB, free: 43.97 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1322/0.475, allocations: 87.86 MB / 0.6051 GB, free: 1.777 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000317/0.4754, allocations: 67.94 kB / 0.6051 GB, free: 1.715 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006261/0.4817, allocations: 1.642 MB / 0.6067 GB, free: 92 kB / 410.7 MB Notification: Performance of FrontEnd: time 2.195e-06/0.4817, allocations: 3.938 kB / 0.6067 GB, free: 88 kB / 410.7 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.4818, allocations: 4.5 kB / 0.6067 GB, free: 84 kB / 410.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.0007475/0.4825, allocations: 390 kB / 0.6071 GB, free: 15.66 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.637e-05/0.4826, allocations: 12.03 kB / 0.6071 GB, free: 15.64 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.18e-05/0.4827, allocations: 39.31 kB / 0.6072 GB, free: 15.6 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001737/0.4828, allocations: 23.36 kB / 0.6072 GB, free: 15.58 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00017/0.483, allocations: 179.1 kB / 0.6074 GB, free: 15.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.4831, allocations: 11.92 kB / 0.6074 GB, free: 15.35 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.343e-05/0.4831, allocations: 12 kB / 0.6074 GB, free: 15.34 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002281/0.4833, allocations: 81.64 kB / 0.6075 GB, free: 15.25 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.4833, allocations: 4 kB / 0.6075 GB, free: 15.25 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.854e-05/0.4834, allocations: 4 kB / 0.6075 GB, free: 15.25 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.4834, allocations: 0.5312 kB / 0.6075 GB, free: 15.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001635/0.4836, allocations: 48.81 kB / 0.6075 GB, free: 15.2 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005921/0.4842, allocations: 325.9 kB / 0.6078 GB, free: 14.83 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001987/0.4844, allocations: 98.41 kB / 0.6079 GB, free: 14.73 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.304e-05/0.4844, allocations: 0 / 0.6079 GB, free: 14.73 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002171/0.4846, allocations: 100.5 kB / 0.608 GB, free: 14.62 MB / 426.7 MB Notification: Performance of pre-optimization done (n=14): time 2.004e-06/0.4846, allocations: 0 / 0.608 GB, free: 14.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=14): time 0.000501/0.4852, allocations: 196.9 kB / 0.6082 GB, free: 14.42 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.542e-05/0.4852, allocations: 67.33 kB / 0.6083 GB, free: 14.34 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.4853, allocations: 109.2 kB / 0.6084 GB, free: 14.23 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.316e-05/0.4854, allocations: 29.7 kB / 0.6084 GB, free: 14.19 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.593e-05/0.4854, allocations: 88.42 kB / 0.6085 GB, free: 14.1 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.573e-05/0.4855, allocations: 39.55 kB / 0.6085 GB, free: 14.06 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.376e-06/0.4855, allocations: 4 kB / 0.6085 GB, free: 14.05 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.4856, allocations: 318.8 kB / 0.6088 GB, free: 13.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.903e-05/0.4857, allocations: 40.36 kB / 0.6089 GB, free: 13.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000113/0.4859, allocations: 79.19 kB / 0.6089 GB, free: 13.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001174/0.486, allocations: 47.92 kB / 0.609 GB, free: 13.55 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.486, allocations: 4 kB / 0.609 GB, free: 13.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002819/0.4863, allocations: 161.6 kB / 0.6091 GB, free: 13.39 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.4863, allocations: 13.97 kB / 0.6092 GB, free: 13.38 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.803e-06/0.4863, allocations: 0 / 0.6092 GB, free: 13.38 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.818e-05/0.4863, allocations: 4 kB / 0.6092 GB, free: 13.37 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.4865, allocations: 19.98 kB / 0.6092 GB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.097e-05/0.4865, allocations: 7.922 kB / 0.6092 GB, free: 13.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.561e-05/0.4866, allocations: 23.86 kB / 0.6092 GB, free: 13.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.4866, allocations: 4 kB / 0.6092 GB, free: 13.32 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.firstOrderHold.firstTrigger,firstOrderHold.firstTrigger,$PRE.zeroOrderHold.firstTrigger,zeroOrderHold.firstTrigger,$PRE.zeroOrderHold.ySample,$whenCondition1,zeroOrderHold.sampleTrigger,$whenCondition2,firstOrderHold.sampleTrigger,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.0001115/0.4867, allocations: 136.8 kB / 0.6093 GB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.991e-05/0.4867, allocations: 7.906 kB / 0.6093 GB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.827e-05/0.4868, allocations: 12.5 kB / 0.6094 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.016e-06/0.4868, allocations: 0 / 0.6094 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.4868, allocations: 0 / 0.6094 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.4868, allocations: 3.984 kB / 0.6094 GB, free: 13.16 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005383/0.4874, allocations: 446.4 kB / 0.6098 GB, free: 12.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.4874, allocations: 4 kB / 0.6098 GB, free: 12.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.481e-05/0.4874, allocations: 7.984 kB / 0.6098 GB, free: 12.65 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.4875, allocations: 4 kB / 0.6098 GB, free: 12.65 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.4875, allocations: 4 kB / 0.6098 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.4875, allocations: 3.953 kB / 0.6098 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.4875, allocations: 0 / 0.6098 GB, free: 12.64 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003125/0.4878, allocations: 255.3 kB / 0.6101 GB, free: 12.38 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.519e-05/0.4879, allocations: 89 kB / 0.6101 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.177e-05/0.4879, allocations: 0 / 0.6101 GB, free: 12.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.488, allocations: 15.98 kB / 0.6102 GB, free: 12.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.875e-05/0.4881, allocations: 7.953 kB / 0.6102 GB, free: 12.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.4881, allocations: 7.984 kB / 0.6102 GB, free: 12.24 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.821e-05/0.4881, allocations: 99.2 kB / 0.6103 GB, free: 12.14 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4881, allocations: 0 / 0.6103 GB, free: 12.14 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002509/0.4884, allocations: 24 kB / 0.6103 GB, free: 12.12 MB / 426.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 (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.0006561/0.4891, allocations: 0.7829 MB / 0.6111 GB, free: 11.31 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002579/0.4893, allocations: 111.5 kB / 0.6112 GB, free: 11.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.4894, allocations: 3.938 kB / 0.6112 GB, free: 11.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001133/0.4895, allocations: 59.91 kB / 0.6112 GB, free: 11.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001949/0.4897, allocations: 11.95 kB / 0.6112 GB, free: 11.13 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001397/0.4911, allocations: 1.416 MB / 0.6126 GB, free: 9.645 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000271/0.4914, allocations: 0.7004 MB / 0.6133 GB, free: 8.918 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 4.544e-05/0.4914, allocations: 8.875 kB / 0.6133 GB, free: 8.91 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.497e-05/0.4915, allocations: 27.44 kB / 0.6133 GB, free: 8.887 MB / 426.7 MB Notification: Performance of SimCode: time 4.81e-07/0.4915, allocations: 0 / 0.6133 GB, free: 8.887 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01237/0.5039, allocations: 1.859 MB / 0.6151 GB, free: 7.16 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001901/0.5041, allocations: 170.3 kB / 0.6153 GB, free: 6.914 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.607/2.111, allocations: 0 / 0.6153 GB, free: 6.914 MB / 426.7 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