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.001032/0.001032, allocations: 196.9 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 225.4 MB / 240.1 MB, free: 15.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009281/0.0009282, allocations: 86.8 kB / 292.1 MB, free: 5.945 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1903/0.1903, allocations: 45.16 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 5.315e-05/5.33e-05, allocations: 0 / 460.5 MB, free: 69.93 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1037, allocations: 63.24 MB / 0.5114 GB, free: 6.699 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3731/0.4769, allocations: 87.79 MB / 0.5972 GB, free: 6.023 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002042/0.4771, allocations: 61.59 kB / 0.5972 GB, free: 5.992 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004981/0.4821, allocations: 1.626 MB / 0.5988 GB, free: 4.582 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.4821, allocations: 0 / 0.5988 GB, free: 4.582 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.4821, allocations: 4 kB / 0.5988 GB, free: 4.578 MB / 394.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.0005543/0.4827, allocations: 389.7 kB / 0.5992 GB, free: 4.16 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.4828, allocations: 11.97 kB / 0.5992 GB, free: 4.148 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.493e-05/0.4828, allocations: 37.69 kB / 0.5992 GB, free: 4.105 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001422/0.483, allocations: 20.64 kB / 0.5993 GB, free: 4.086 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001473/0.4831, allocations: 171.8 kB / 0.5994 GB, free: 3.879 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.187e-05/0.4832, allocations: 12.41 kB / 0.5994 GB, free: 3.871 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.696e-05/0.4832, allocations: 13.94 kB / 0.5995 GB, free: 3.859 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001799/0.4834, allocations: 80.67 kB / 0.5995 GB, free: 3.789 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.037e-05/0.4834, allocations: 0 / 0.5995 GB, free: 3.789 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.636e-05/0.4834, allocations: 4.984 kB / 0.5995 GB, free: 3.785 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.4834, allocations: 0 / 0.5995 GB, free: 3.785 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000103/0.4835, allocations: 35.81 kB / 0.5996 GB, free: 3.762 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005924/0.4841, allocations: 335 kB / 0.5999 GB, free: 3.41 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001747/0.4843, allocations: 89.5 kB / 0.6 GB, free: 3.336 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.156e-05/0.4844, allocations: 41.47 kB / 0.6 GB, free: 3.305 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.4845, allocations: 0 / 0.6 GB, free: 3.305 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001743/0.4846, allocations: 95.38 kB / 0.6001 GB, free: 3.215 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.573e-06/0.4846, allocations: 0 / 0.6001 GB, free: 3.215 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003179/0.485, allocations: 141.2 kB / 0.6002 GB, free: 3.098 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.351e-05/0.485, allocations: 59.39 kB / 0.6003 GB, free: 3.027 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.838e-05/0.4851, allocations: 107.2 kB / 0.6004 GB, free: 2.918 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.737e-05/0.4852, allocations: 37.34 kB / 0.6004 GB, free: 2.879 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.623e-05/0.4852, allocations: 90.55 kB / 0.6005 GB, free: 2.789 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.495e-05/0.4853, allocations: 37.22 kB / 0.6006 GB, free: 2.758 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.852e-06/0.4853, allocations: 3 kB / 0.6006 GB, free: 2.758 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.4854, allocations: 326.3 kB / 0.6009 GB, free: 2.434 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.614e-05/0.4855, allocations: 30.5 kB / 0.6009 GB, free: 2.414 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.088e-05/0.4856, allocations: 69.97 kB / 0.601 GB, free: 2.344 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.549e-05/0.4857, allocations: 41.33 kB / 0.601 GB, free: 2.316 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.4857, allocations: 0 / 0.601 GB, free: 2.316 MB / 394.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002101/0.4859, allocations: 148 kB / 0.6012 GB, free: 2.191 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.4859, allocations: 9.406 kB / 0.6012 GB, free: 2.184 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.4859, allocations: 0 / 0.6012 GB, free: 2.184 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.486, allocations: 4 kB / 0.6012 GB, free: 2.18 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001196/0.4861, allocations: 27.3 kB / 0.6012 GB, free: 2.156 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.969e-06/0.4861, allocations: 12.05 kB / 0.6012 GB, free: 2.145 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.684e-05/0.4862, allocations: 7.938 kB / 0.6012 GB, free: 2.137 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.4862, allocations: 11.44 kB / 0.6012 GB, free: 2.129 MB / 394.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 () * 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 9.338e-05/0.4863, allocations: 114.4 kB / 0.6013 GB, free: 2.012 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.039e-05/0.4863, allocations: 15.89 kB / 0.6013 GB, free: 1.996 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.516e-05/0.4864, allocations: 12.12 kB / 0.6014 GB, free: 1.992 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.4864, allocations: 0 / 0.6014 GB, free: 1.992 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.4864, allocations: 0 / 0.6014 GB, free: 1.992 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.4864, allocations: 8.328 kB / 0.6014 GB, free: 1.984 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004648/0.4869, allocations: 427.3 kB / 0.6018 GB, free: 1.555 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.4869, allocations: 0 / 0.6018 GB, free: 1.555 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.698e-05/0.4869, allocations: 11.98 kB / 0.6018 GB, free: 1.543 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.487, allocations: 3.938 kB / 0.6018 GB, free: 1.539 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.413e-05/0.487, allocations: 2.938 kB / 0.6018 GB, free: 1.539 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.487, allocations: 11.94 kB / 0.6018 GB, free: 1.527 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.487, allocations: 0 / 0.6018 GB, free: 1.527 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000258/0.4873, allocations: 247.2 kB / 0.602 GB, free: 1.297 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.551e-05/0.4873, allocations: 88.95 kB / 0.6021 GB, free: 1.191 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.369e-05/0.4873, allocations: 3.188 kB / 0.6021 GB, free: 1.191 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.4875, allocations: 11.98 kB / 0.6021 GB, free: 1.18 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.117e-05/0.4875, allocations: 15.31 kB / 0.6022 GB, free: 1.168 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.73e-05/0.4875, allocations: 8 kB / 0.6022 GB, free: 1.16 MB / 394.7 MB Notification: Performance of sorting global known variables: time 5.14e-05/0.4876, allocations: 86.72 kB / 0.6022 GB, free: 1.078 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4876, allocations: 4 kB / 0.6022 GB, free: 1.074 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000243/0.4879, allocations: 27.36 kB / 0.6023 GB, free: 1.051 MB / 394.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) * 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.0005795/0.4884, allocations: 0.7751 MB / 0.603 GB, free: 288 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001923/0.4886, allocations: 90.05 kB / 0.6031 GB, free: 220 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.4887, allocations: 4.312 kB / 0.6031 GB, free: 216 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 7.918e-05/0.4887, allocations: 48.88 kB / 0.6032 GB, free: 180 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001891/0.4889, allocations: 15.38 kB / 0.6032 GB, free: 168 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004927/0.4894, allocations: 167.7 kB / 0.6033 GB, free: 15.98 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002962/0.4897, allocations: 0.6965 MB / 0.604 GB, free: 15.26 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.306e-05/0.4898, allocations: 8.891 kB / 0.604 GB, free: 15.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.967e-05/0.4899, allocations: 29.3 kB / 0.6041 GB, free: 15.23 MB / 410.7 MB Notification: Performance of SimCode: time 4.31e-07/0.4899, allocations: 4 kB / 0.6041 GB, free: 15.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01304/0.5029, allocations: 1.874 MB / 0.6059 GB, free: 13.46 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001744/0.5031, allocations: 135.4 kB / 0.606 GB, free: 13.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.384/1.887, allocations: 3.938 kB / 0.606 GB, free: 13.24 MB / 410.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