Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.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/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/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(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked",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.001567/0.001566, allocations: 183.8 kB / 15.8 MB, free: 6.316 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.009/2.009, allocations: 205.4 MB / 221.9 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001119/0.001118, allocations: 90.86 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09607/0.09607, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005478/0.0005479, allocations: 21 kB / 392.1 MB, free: 54.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09214/0.09273, allocations: 50.36 MB / 442.5 MB, free: 10.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1422/0.235, allocations: 78.24 MB / 0.5085 GB, free: 12.48 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003363/0.2354, allocations: 79.95 kB / 0.5086 GB, free: 12.4 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005531/0.2409, allocations: 1.351 MB / 0.5099 GB, free: 11.04 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.285e-06/0.241, allocations: 0 / 0.5099 GB, free: 11.04 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.011e-05/0.241, allocations: 0 / 0.5099 GB, free: 11.04 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0005014/0.2415, allocations: 370.9 kB / 0.5103 GB, free: 10.63 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.2416, allocations: 8.031 kB / 0.5103 GB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.66e-05/0.2416, allocations: 42.55 kB / 0.5103 GB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.142e-05/0.2417, allocations: 7.906 kB / 0.5103 GB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002204/0.2419, allocations: 178.9 kB / 0.5105 GB, free: 10.35 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.2419, allocations: 11.95 kB / 0.5105 GB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.538e-05/0.242, allocations: 0 / 0.5105 GB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002914/0.2423, allocations: 89.05 kB / 0.5106 GB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.2423, allocations: 3.984 kB / 0.5106 GB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.048e-05/0.2423, allocations: 0 / 0.5106 GB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.2423, allocations: 4 kB / 0.5106 GB, free: 10.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001287/0.2425, allocations: 23.98 kB / 0.5106 GB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004405/0.2429, allocations: 273.7 kB / 0.5109 GB, free: 9.883 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001195/0.2431, allocations: 45.22 kB / 0.5109 GB, free: 9.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.736e-05/0.2431, allocations: 64 / 0.5109 GB, free: 9.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/0.2432, allocations: 38.5 kB / 0.511 GB, free: 9.773 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 1.312e-06/0.2432, allocations: 0 / 0.511 GB, free: 9.773 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003595/0.2436, allocations: 77.61 kB / 0.511 GB, free: 9.691 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.192e-05/0.2436, allocations: 81.11 kB / 0.5111 GB, free: 9.594 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000151/0.2438, allocations: 124.1 kB / 0.5112 GB, free: 9.465 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.813e-05/0.2438, allocations: 25.7 kB / 0.5112 GB, free: 9.434 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.579e-05/0.2439, allocations: 92.12 kB / 0.5113 GB, free: 9.34 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.393e-05/0.2439, allocations: 0 / 0.5113 GB, free: 9.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-06/0.2439, allocations: 160 / 0.5113 GB, free: 9.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.2441, allocations: 318.8 kB / 0.5116 GB, free: 9.02 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.431e-05/0.2442, allocations: 11.98 kB / 0.5117 GB, free: 9.008 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.732e-05/0.2442, allocations: 17.72 kB / 0.5117 GB, free: 8.984 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.762e-05/0.2443, allocations: 19.94 kB / 0.5117 GB, free: 8.965 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2443, allocations: 4.062 kB / 0.5117 GB, free: 8.961 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000195/0.2445, allocations: 61.53 kB / 0.5117 GB, free: 8.895 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.893e-05/0.2446, allocations: 4 kB / 0.5118 GB, free: 8.891 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.2446, allocations: 0 / 0.5118 GB, free: 8.891 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.2446, allocations: 4 kB / 0.5118 GB, free: 8.887 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.985e-05/0.2447, allocations: 11.98 kB / 0.5118 GB, free: 8.875 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.68e-06/0.2447, allocations: 0 / 0.5118 GB, free: 8.875 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.798e-05/0.2448, allocations: 8.062 kB / 0.5118 GB, free: 8.867 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.181e-05/0.2448, allocations: 0 / 0.5118 GB, free: 8.867 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001163/0.245, allocations: 137.4 kB / 0.5119 GB, free: 8.723 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.044e-05/0.2451, allocations: 41.55 kB / 0.5119 GB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.871e-05/0.2451, allocations: 11.88 kB / 0.512 GB, free: 8.664 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.2451, allocations: 0 / 0.512 GB, free: 8.664 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.2451, allocations: 0 / 0.512 GB, free: 8.664 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.2451, allocations: 0 / 0.512 GB, free: 8.664 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002165/0.2454, allocations: 173.7 kB / 0.5121 GB, free: 8.445 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.818e-06/0.2454, allocations: 3.953 kB / 0.5121 GB, free: 8.441 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.227e-05/0.2455, allocations: 7.984 kB / 0.5121 GB, free: 8.434 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.2455, allocations: 0 / 0.5121 GB, free: 8.434 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.04e-05/0.2455, allocations: 4 kB / 0.5121 GB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.2455, allocations: 0 / 0.5121 GB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.2455, allocations: 0 / 0.5121 GB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002648/0.2458, allocations: 191.4 kB / 0.5123 GB, free: 8.219 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.178e-05/0.2459, allocations: 85.09 kB / 0.5124 GB, free: 8.117 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.912e-05/0.2459, allocations: 0 / 0.5124 GB, free: 8.117 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.622e-05/0.246, allocations: 4 kB / 0.5124 GB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.425e-05/0.2461, allocations: 0 / 0.5124 GB, free: 8.113 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-06/0.2461, allocations: 0 / 0.5124 GB, free: 8.113 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001132/0.2462, allocations: 115.2 kB / 0.5125 GB, free: 8 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.2462, allocations: 0 / 0.5125 GB, free: 8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002738/0.2465, allocations: 4 kB / 0.5125 GB, free: 7.996 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0006035/0.2471, allocations: 0.7759 MB / 0.5133 GB, free: 7.188 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001827/0.2473, allocations: 19.98 kB / 0.5133 GB, free: 7.168 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.2473, allocations: 4 kB / 0.5133 GB, free: 7.164 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.608e-05/0.2474, allocations: 8.156 kB / 0.5133 GB, free: 7.156 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000303/0.2477, allocations: 31.77 kB / 0.5133 GB, free: 7.129 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/0.2489, allocations: 0.616 MB / 0.5139 GB, free: 6.453 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003401/0.2492, allocations: 0.6926 MB / 0.5146 GB, free: 5.734 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.11e-05/0.2493, allocations: 0 / 0.5146 GB, free: 5.734 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.928e-05/0.2493, allocations: 19.42 kB / 0.5146 GB, free: 5.715 MB / 362.7 MB Notification: Performance of SimCode: time 1.162e-06/0.2494, allocations: 4 kB / 0.5146 GB, free: 5.711 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/0.2717, allocations: 1.23 MB / 0.5158 GB, free: 4.488 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000311/0.2721, allocations: 204.7 kB / 0.516 GB, free: 4.246 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.399/2.671, allocations: 4 kB / 0.516 GB, free: 4.242 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleClocked.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleClocked_res.mat does not exist to compare? outputFormat=mat