Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.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.Sample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2",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.002324/0.002323, allocations: 180.4 kB / 15.8 MB, free: 6.34 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.086/2.086, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001152/0.001151, allocations: 94.84 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.09696/0.09696, allocations: 12.58 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005475/0.0005474, allocations: 14.34 kB / 392.1 MB, free: 54.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09176/0.09235, allocations: 50.37 MB / 442.5 MB, free: 10.82 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1411/0.2335, allocations: 77.87 MB / 0.5082 GB, free: 12.85 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003059/0.2338, allocations: 75.95 kB / 0.5082 GB, free: 12.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004339/0.2382, allocations: 1.122 MB / 0.5093 GB, free: 11.65 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2382, allocations: 0 / 0.5093 GB, free: 11.65 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.443e-05/0.2383, allocations: 4 kB / 0.5093 GB, free: 11.64 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004843/0.2388, allocations: 371 kB / 0.5097 GB, free: 11.23 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.2388, allocations: 8.031 kB / 0.5097 GB, free: 11.23 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.557e-05/0.2389, allocations: 30.56 kB / 0.5097 GB, free: 11.19 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.73e-05/0.2389, allocations: 7.906 kB / 0.5097 GB, free: 11.18 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002749/0.2392, allocations: 194.8 kB / 0.5099 GB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.2393, allocations: 11.95 kB / 0.5099 GB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.572e-05/0.2393, allocations: 0 / 0.5099 GB, free: 10.94 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003721/0.2397, allocations: 113 kB / 0.51 GB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.2397, allocations: 0 / 0.51 GB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.2397, allocations: 0 / 0.51 GB, free: 10.81 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.2397, allocations: 4 kB / 0.51 GB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001327/0.2399, allocations: 27.92 kB / 0.5101 GB, free: 10.78 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004605/0.2403, allocations: 269.7 kB / 0.5103 GB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002895/0.2406, allocations: 142.2 kB / 0.5105 GB, free: 10.29 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.333e-05/0.2407, allocations: 4.062 kB / 0.5105 GB, free: 10.28 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.345e-05/0.2407, allocations: 30.56 kB / 0.5105 GB, free: 10.24 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 2.004e-06/0.2407, allocations: 0 / 0.5105 GB, free: 10.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003895/0.2411, allocations: 93.58 kB / 0.5106 GB, free: 10.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.768e-05/0.2412, allocations: 81.11 kB / 0.5107 GB, free: 10.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.2414, allocations: 113.3 kB / 0.5108 GB, free: 9.926 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.2414, allocations: 33.64 kB / 0.5108 GB, free: 9.887 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.271e-05/0.2415, allocations: 88.12 kB / 0.5109 GB, free: 9.797 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.902e-05/0.2415, allocations: 4 kB / 0.5109 GB, free: 9.793 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.397e-06/0.2415, allocations: 4.125 kB / 0.5109 GB, free: 9.789 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.2417, allocations: 310.8 kB / 0.5112 GB, free: 9.477 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.033e-05/0.2418, allocations: 15.98 kB / 0.5112 GB, free: 9.461 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.937e-05/0.2419, allocations: 35.36 kB / 0.5112 GB, free: 9.414 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.273e-05/0.242, allocations: 23.95 kB / 0.5113 GB, free: 9.391 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.242, allocations: 0 / 0.5113 GB, free: 9.391 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002116/0.2422, allocations: 69.52 kB / 0.5113 GB, free: 9.316 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.2422, allocations: 4 kB / 0.5113 GB, free: 9.312 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.044e-05/0.2422, allocations: 7.984 kB / 0.5113 GB, free: 9.305 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.2423, allocations: 4.125 kB / 0.5113 GB, free: 9.301 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.079e-05/0.2424, allocations: 8 kB / 0.5113 GB, free: 9.293 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.2424, allocations: 3.938 kB / 0.5113 GB, free: 9.289 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.859e-05/0.2425, allocations: 11.92 kB / 0.5114 GB, free: 9.277 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.051e-05/0.2425, allocations: 4 kB / 0.5114 GB, free: 9.273 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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.2426, allocations: 121.6 kB / 0.5115 GB, free: 9.145 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/0.2427, allocations: 49.59 kB / 0.5115 GB, free: 9.09 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.008e-05/0.2428, allocations: 12.25 kB / 0.5115 GB, free: 9.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.2428, allocations: 7.938 kB / 0.5115 GB, free: 9.062 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.2428, allocations: 0 / 0.5115 GB, free: 9.062 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.2428, allocations: 0 / 0.5115 GB, free: 9.062 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002307/0.2431, allocations: 169.7 kB / 0.5117 GB, free: 8.848 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.2431, allocations: 3.953 kB / 0.5117 GB, free: 8.844 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001012/0.2432, allocations: 11.98 kB / 0.5117 GB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.2432, allocations: 0 / 0.5117 GB, free: 8.832 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.2432, allocations: 4 kB / 0.5117 GB, free: 8.828 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.455e-06/0.2432, allocations: 3.938 kB / 0.5117 GB, free: 8.824 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.2433, allocations: 4 kB / 0.5117 GB, free: 8.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002817/0.2436, allocations: 186 kB / 0.5119 GB, free: 8.613 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.887e-05/0.2437, allocations: 85.09 kB / 0.512 GB, free: 8.512 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.791e-05/0.2437, allocations: 0 / 0.512 GB, free: 8.512 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.84e-05/0.2438, allocations: 12 kB / 0.512 GB, free: 8.5 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.896e-05/0.2438, allocations: 4 kB / 0.512 GB, free: 8.496 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-06/0.2439, allocations: 0 / 0.512 GB, free: 8.496 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001036/0.244, allocations: 99.25 kB / 0.5121 GB, free: 8.398 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.244, allocations: 4 kB / 0.5121 GB, free: 8.395 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002927/0.2443, allocations: 8 kB / 0.5121 GB, free: 8.387 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 (4): * Single equations (assignments): 4 * 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.0006658/0.245, allocations: 0.7811 MB / 0.5129 GB, free: 7.574 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002025/0.2452, allocations: 39.86 kB / 0.5129 GB, free: 7.535 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.2452, allocations: 4.25 kB / 0.5129 GB, free: 7.531 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.549e-05/0.2453, allocations: 11.98 kB / 0.5129 GB, free: 7.52 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003214/0.2456, allocations: 20.34 kB / 0.5129 GB, free: 7.504 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001265/0.2469, allocations: 0.9234 MB / 0.5138 GB, free: 6.512 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004066/0.2473, allocations: 0.6887 MB / 0.5145 GB, free: 5.797 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.628e-05/0.2474, allocations: 4 kB / 0.5145 GB, free: 5.793 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.998e-05/0.2474, allocations: 15.42 kB / 0.5145 GB, free: 5.781 MB / 362.7 MB Notification: Performance of SimCode: time 1.012e-06/0.2474, allocations: 4 kB / 0.5145 GB, free: 5.777 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01962/0.2671, allocations: 1.241 MB / 0.5158 GB, free: 4.547 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002868/0.2674, allocations: 206 kB / 0.516 GB, free: 4.297 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.317/2.584, allocations: 0 / 0.516 GB, free: 4.297 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.Sample2_res.mat does not exist to compare? outputFormat=mat