Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.FirstOrderHold,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002144/0.002143, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.102/2.102, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00275/0.002749, allocations: 93 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3002/0.3002, allocations: 43.49 MB / 353.6 MB, free: 2.258 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.026e-05/2.022e-05, allocations: 4.219 kB / 418.3 MB, free: 40.95 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4339/0.434, allocations: 58.86 MB / 477.2 MB, free: 5.148 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1626/0.5966, allocations: 84.98 MB / 0.549 GB, free: 14.25 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/0.5969, allocations: 63.97 kB / 0.549 GB, free: 14.19 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.006497/0.6035, allocations: 1.469 MB / 0.5505 GB, free: 12.71 MB / 395.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.6035, allocations: 0 / 0.5505 GB, free: 12.71 MB / 395.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.6035, allocations: 4 kB / 0.5505 GB, free: 12.71 MB / 395.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.0006822/0.6042, allocations: 382.9 kB / 0.5508 GB, free: 12.29 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.6043, allocations: 8.031 kB / 0.5508 GB, free: 12.29 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.443e-05/0.6044, allocations: 11.91 kB / 0.5509 GB, free: 12.27 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001774/0.6045, allocations: 175.2 kB / 0.551 GB, free: 12.06 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.559e-05/0.6046, allocations: 3.984 kB / 0.551 GB, free: 12.06 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.989e-05/0.6046, allocations: 12 kB / 0.551 GB, free: 12.05 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001575/0.6048, allocations: 28 kB / 0.5511 GB, free: 12.02 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001879/0.605, allocations: 69.66 kB / 0.5511 GB, free: 11.95 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.605, allocations: 4 kB / 0.5511 GB, free: 11.94 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.605e-05/0.605, allocations: 0 / 0.5511 GB, free: 11.94 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.6051, allocations: 0 / 0.5511 GB, free: 11.94 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007174/0.6058, allocations: 317.1 kB / 0.5514 GB, free: 11.59 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002113/0.606, allocations: 81.52 kB / 0.5515 GB, free: 11.51 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.704e-05/0.6061, allocations: 32.86 kB / 0.5515 GB, free: 11.47 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.182e-05/0.6062, allocations: 8 kB / 0.5516 GB, free: 11.46 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000226/0.6064, allocations: 83.38 kB / 0.5516 GB, free: 11.37 MB / 395.1 MB Notification: Performance of pre-optimization done (n=14): time 2.304e-06/0.6064, allocations: 0 / 0.5516 GB, free: 11.37 MB / 395.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004009/0.6068, allocations: 133.5 kB / 0.5518 GB, free: 11.23 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.945e-05/0.6069, allocations: 63.39 kB / 0.5518 GB, free: 11.16 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001132/0.607, allocations: 101.5 kB / 0.5519 GB, free: 11.05 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.6071, allocations: 33.7 kB / 0.552 GB, free: 11.01 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.342e-05/0.6072, allocations: 158.8 kB / 0.5521 GB, free: 10.85 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.021e-05/0.6072, allocations: 31.64 kB / 0.5521 GB, free: 10.82 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.726e-06/0.6073, allocations: 3.938 kB / 0.5521 GB, free: 10.82 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.6074, allocations: 326.8 kB / 0.5524 GB, free: 10.49 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.229e-05/0.6075, allocations: 28.38 kB / 0.5525 GB, free: 10.46 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001315/0.6077, allocations: 69.7 kB / 0.5525 GB, free: 10.38 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/0.6078, allocations: 39 kB / 0.5526 GB, free: 10.34 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.436e-06/0.6078, allocations: 0 / 0.5526 GB, free: 10.34 MB / 395.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003103/0.6081, allocations: 129.7 kB / 0.5527 GB, free: 10.21 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.092e-05/0.6082, allocations: 8 kB / 0.5527 GB, free: 10.2 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.6082, allocations: 0 / 0.5527 GB, free: 10.2 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.816e-05/0.6082, allocations: 4 kB / 0.5527 GB, free: 10.2 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000206/0.6084, allocations: 27.92 kB / 0.5527 GB, free: 10.17 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.6084, allocations: 0 / 0.5527 GB, free: 10.17 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.6085, allocations: 7.906 kB / 0.5527 GB, free: 10.16 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.6086, allocations: 12.16 kB / 0.5528 GB, free: 10.15 MB / 395.1 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 0.0001577/0.6088, allocations: 123.1 kB / 0.5529 GB, free: 10.02 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003148/0.6091, allocations: 129.7 kB / 0.553 GB, free: 9.887 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.495e-05/0.6091, allocations: 11.91 kB / 0.553 GB, free: 9.875 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.114e-05/0.6092, allocations: 16.72 kB / 0.553 GB, free: 9.855 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.6092, allocations: 0 / 0.553 GB, free: 9.855 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.6092, allocations: 0 / 0.553 GB, free: 9.855 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.673e-06/0.6092, allocations: 7.953 kB / 0.553 GB, free: 9.848 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006612/0.6099, allocations: 395 kB / 0.5534 GB, free: 9.418 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.6099, allocations: 0 / 0.5534 GB, free: 9.418 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.562e-05/0.61, allocations: 8 kB / 0.5534 GB, free: 9.41 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.61, allocations: 0 / 0.5534 GB, free: 9.41 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.157e-05/0.6101, allocations: 3.984 kB / 0.5534 GB, free: 9.406 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.6101, allocations: 11.89 kB / 0.5534 GB, free: 9.395 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.6101, allocations: 0 / 0.5534 GB, free: 9.395 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003732/0.6105, allocations: 235.4 kB / 0.5537 GB, free: 9.148 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.039e-05/0.6106, allocations: 81.02 kB / 0.5537 GB, free: 9.051 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.464e-05/0.6106, allocations: 4 kB / 0.5537 GB, free: 9.047 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001807/0.6108, allocations: 7.984 kB / 0.5537 GB, free: 9.039 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.917e-05/0.6109, allocations: 15.94 kB / 0.5538 GB, free: 9.023 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.109e-05/0.6109, allocations: 4 kB / 0.5538 GB, free: 9.02 MB / 395.1 MB Notification: Performance of sorting global known variables: time 7.332e-05/0.611, allocations: 91.22 kB / 0.5539 GB, free: 8.93 MB / 395.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.611, allocations: 0 / 0.5539 GB, free: 8.93 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0003623/0.6114, allocations: 23.98 kB / 0.5539 GB, free: 8.906 MB / 395.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) * 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.0006985/0.6121, allocations: 0.7597 MB / 0.5546 GB, free: 8.121 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0002725/0.6124, allocations: 92.05 kB / 0.5547 GB, free: 8.031 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.6124, allocations: 0 / 0.5547 GB, free: 8.031 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001261/0.6125, allocations: 47.92 kB / 0.5548 GB, free: 7.984 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.6128, allocations: 12.27 kB / 0.5548 GB, free: 7.973 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006685/0.6135, allocations: 187.9 kB / 0.5549 GB, free: 7.742 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003623/0.6139, allocations: 0.6924 MB / 0.5556 GB, free: 7.023 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.614, allocations: 31.42 kB / 0.5556 GB, free: 6.992 MB / 395.1 MB Notification: Performance of SimCode: time 1.012e-06/0.614, allocations: 0 / 0.5556 GB, free: 6.992 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.423/3.037, allocations: 1.531 MB / 0.5571 GB, free: 5.469 MB / 395.1 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_FirstOrderHold_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Blocks_FirstOrderHold.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.FirstOrderHold_res.mat does not exist to compare? outputFormat=mat