Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.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.SampleWithADeffects,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleWithADeffects",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleWithADeffects",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.001557/0.001557, allocations: 183.4 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.012/2.012, 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.001132/0.001132, allocations: 94.8 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.1003/0.1003, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005341/0.0005341, allocations: 17.44 kB / 392.1 MB, free: 54.73 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09424/0.09481, allocations: 50.36 MB / 442.5 MB, free: 10.81 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1434/0.2383, allocations: 79.78 MB / 0.51 GB, free: 10.91 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003088/0.2387, allocations: 91.89 kB / 0.5101 GB, free: 10.82 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02158/0.2603, allocations: 4.591 MB / 0.5146 GB, free: 6.227 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.2603, allocations: 4 kB / 0.5146 GB, free: 6.223 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.826e-05/0.2604, allocations: 7.938 kB / 0.5146 GB, free: 6.215 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0009798/0.2613, allocations: 474.7 kB / 0.515 GB, free: 5.699 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.2614, allocations: 12.03 kB / 0.5151 GB, free: 5.688 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.785e-05/0.2615, allocations: 34.56 kB / 0.5151 GB, free: 5.645 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.086e-05/0.2616, allocations: 19.81 kB / 0.5151 GB, free: 5.625 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004416/0.262, allocations: 247.1 kB / 0.5153 GB, free: 5.344 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.262, allocations: 8.188 kB / 0.5154 GB, free: 5.336 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.954e-05/0.2621, allocations: 8 kB / 0.5154 GB, free: 5.328 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00106/0.2632, allocations: 338.9 kB / 0.5157 GB, free: 4.977 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.2632, allocations: 3.984 kB / 0.5157 GB, free: 4.973 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.097e-05/0.2632, allocations: 7.938 kB / 0.5157 GB, free: 4.965 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.2633, allocations: 8 kB / 0.5157 GB, free: 4.957 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005316/0.2638, allocations: 91.94 kB / 0.5158 GB, free: 4.867 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009315/0.2648, allocations: 357.5 kB / 0.5161 GB, free: 4.465 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001189/0.266, allocations: 278.4 kB / 0.5164 GB, free: 4.156 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001167/0.2672, allocations: 0.5739 MB / 0.517 GB, free: 3.453 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.209e-05/0.2673, allocations: 50.58 kB / 0.517 GB, free: 3.395 MB / 362.7 MB Notification: Performance of pre-optimization done (n=19): time 4.208e-06/0.2673, allocations: 3.938 kB / 0.517 GB, free: 3.391 MB / 362.7 MB Notification: Performance of matching and sorting (n=19): time 0.001172/0.2685, allocations: 330.6 kB / 0.5173 GB, free: 3.043 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.2686, allocations: 121.4 kB / 0.5174 GB, free: 2.902 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002736/0.2689, allocations: 177.3 kB / 0.5176 GB, free: 2.719 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.095e-05/0.269, allocations: 25.7 kB / 0.5176 GB, free: 2.688 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.418e-05/0.269, allocations: 104.5 kB / 0.5177 GB, free: 2.582 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.541e-05/0.2691, allocations: 19.97 kB / 0.5178 GB, free: 2.562 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.925e-05/0.2691, allocations: 8 kB / 0.5178 GB, free: 2.555 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.2693, allocations: 330.8 kB / 0.5181 GB, free: 2.223 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00014/0.2695, allocations: 36.36 kB / 0.5181 GB, free: 2.188 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002545/0.2697, allocations: 165.8 kB / 0.5183 GB, free: 1.965 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002031/0.2699, allocations: 64.02 kB / 0.5183 GB, free: 1.902 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.27, allocations: 7.938 kB / 0.5183 GB, free: 1.895 MB / 362.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0005453/0.2705, allocations: 217.6 kB / 0.5185 GB, free: 1.676 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.2706, allocations: 8 kB / 0.5186 GB, free: 1.668 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.2706, allocations: 4 kB / 0.5186 GB, free: 1.664 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.508e-05/0.2706, allocations: 11.95 kB / 0.5186 GB, free: 1.652 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002786/0.2709, allocations: 43.92 kB / 0.5186 GB, free: 1.609 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.543e-05/0.2709, allocations: 4 kB / 0.5186 GB, free: 1.605 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001804/0.2711, allocations: 19.89 kB / 0.5186 GB, free: 1.586 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.573e-05/0.2712, allocations: 12 kB / 0.5186 GB, free: 1.574 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 6 (sample.noise.seedState[3],$CLKPRE.sample.noise.seedState[3],sample.noise.seedState[2],$CLKPRE.sample.noise.seedState[2],sample.noise.seedState[1],$CLKPRE.sample.noise.seedState[1]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample.noise.seedState[3],sample.noise.seedState[2],sample.noise.seedState[1]) * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 22 * 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.0002182/0.2714, allocations: 165.3 kB / 0.5188 GB, free: 1.402 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005217/0.2719, allocations: 165.3 kB / 0.519 GB, free: 1.234 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006293/0.2726, allocations: 187.4 kB / 0.5191 GB, free: 1.043 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.268e-05/0.2726, allocations: 7.953 kB / 0.5191 GB, free: 1.035 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.2726, allocations: 0 / 0.5191 GB, free: 1.035 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.2726, allocations: 0 / 0.5191 GB, free: 1.035 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003374/0.273, allocations: 237.4 kB / 0.5194 GB, free: 0.7539 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.316e-06/0.273, allocations: 0 / 0.5194 GB, free: 0.7539 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003044/0.2733, allocations: 39.91 kB / 0.5194 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.609e-06/0.2733, allocations: 0 / 0.5194 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.882e-05/0.2733, allocations: 8 kB / 0.5194 GB, free: 0.707 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.2734, allocations: 0 / 0.5194 GB, free: 0.707 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.408e-06/0.2734, allocations: 3.953 kB / 0.5194 GB, free: 0.7031 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000689/0.2741, allocations: 309.8 kB / 0.5197 GB, free: 384 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001522/0.2742, allocations: 116.8 kB / 0.5198 GB, free: 248 kB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.164e-05/0.2743, allocations: 11.98 kB / 0.5198 GB, free: 236 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.2745, allocations: 8 kB / 0.5198 GB, free: 228 kB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.604e-05/0.2746, allocations: 7.984 kB / 0.5199 GB, free: 220 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.668e-05/0.2746, allocations: 11.98 kB / 0.5199 GB, free: 208 kB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001811/0.2748, allocations: 140.4 kB / 0.52 GB, free: 68 kB / 362.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.2748, allocations: 0 / 0.52 GB, free: 68 kB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004356/0.2753, allocations: 32 kB / 0.52 GB, free: 36 kB / 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: 3 (sample.noise.seedState[1],sample.noise.seedState[2],sample.noise.seedState[3]) * Number of discrete states: 0 () * Number of clocked states: 3 (sample.noise.seedState[1],sample.noise.seedState[2],sample.noise.seedState[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.2735/0.5488, allocations: 1.009 MB / 0.521 GB, free: 84.83 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005342/0.5494, allocations: 153.4 kB / 0.5212 GB, free: 84.83 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.5494, allocations: 0 / 0.5212 GB, free: 84.83 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.046e-05/0.5495, allocations: 15.27 kB / 0.5212 GB, free: 84.83 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007335/0.5502, allocations: 152 kB / 0.5213 GB, free: 84.79 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002585/0.5528, allocations: 3.73 MB / 0.525 GB, free: 81.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000229/0.5531, allocations: 0.7399 MB / 0.5257 GB, free: 80.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001328/0.5532, allocations: 18.69 kB / 0.5257 GB, free: 80.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.5534, allocations: 43.38 kB / 0.5257 GB, free: 80.82 MB / 362.7 MB Notification: Performance of SimCode: time 9.41e-07/0.5534, allocations: 2.656 kB / 0.5257 GB, free: 80.82 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02589/0.5793, allocations: 3.803 MB / 0.5295 GB, free: 80.43 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002102/0.5796, allocations: 217.3 kB / 0.5297 GB, free: 80.18 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.445/3.024, allocations: 8.875 kB / 0.5297 GB, free: 80.18 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleWithADeffects_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_SampleWithADeffects.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.SampleWithADeffects_res.mat does not exist to compare? outputFormat=mat