Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.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.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_BackSample",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.001126/0.001126, allocations: 171.9 kB / 16.14 MB, free: 5.656 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.507/1.507, allocations: 205.4 MB / 222.3 MB, free: 9.02 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.0007445/0.0007446, allocations: 86.36 kB / 270.7 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0788/0.0788, allocations: 12.59 MB / 331.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003934/0.0003934, allocations: 8 kB / 392.8 MB, free: 65.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08947/0.08988, allocations: 50.38 MB / 443.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample): time 0.001415/0.09134, allocations: 1.32 MB / 444.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000632/0.09199, allocations: 0.5309 MB / 445 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.878e-05/0.09208, allocations: 0 / 445 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.319e-05/0.09212, allocations: 3.938 kB / 445 MB, free: 13.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001256/0.09225, allocations: 23.84 kB / 445 MB, free: 13.42 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002408/0.0925, allocations: 55.83 kB / 445.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.064e-05/0.09259, allocations: 47.86 kB / 445.1 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.222e-05/0.09269, allocations: 19.98 kB / 445.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.014e-05/0.09276, allocations: 23.8 kB / 445.2 MB, free: 13.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.308e-05/0.09282, allocations: 23.86 kB / 445.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.951e-05/0.09285, allocations: 4 kB / 445.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.252e-05/0.09286, allocations: 4 kB / 445.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.423e-05/0.09291, allocations: 19.86 kB / 445.2 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.616e-05/0.09296, allocations: 49.45 kB / 445.3 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.621e-05/0.09305, allocations: 60 kB / 445.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.09306, allocations: 0 / 445.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.09307, allocations: 0 / 445.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.09308, allocations: 0 / 445.3 MB, free: 13.11 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003565/0.09344, allocations: 379.1 kB / 445.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.849e-05/0.09349, allocations: 12.03 kB / 445.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.001e-05/0.09352, allocations: 34.75 kB / 445.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.8e-05/0.09355, allocations: 12.84 kB / 445.8 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001524/0.09371, allocations: 212 kB / 446 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.608e-06/0.09373, allocations: 4.375 kB / 446 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.125e-05/0.09375, allocations: 384 / 446 MB, free: 12.38 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002614/0.09401, allocations: 150.8 kB / 446.1 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.819e-06/0.09403, allocations: 0 / 446.1 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.686e-06/0.09405, allocations: 3.938 kB / 446.1 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.09406, allocations: 0 / 446.1 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.4e-05/0.09415, allocations: 27.98 kB / 446.1 MB, free: 12.17 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002904/0.09445, allocations: 291.4 kB / 446.4 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000103/0.09456, allocations: 98.42 kB / 446.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.446e-05/0.09463, allocations: 43.48 kB / 446.6 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.09466, allocations: 4 kB / 446.6 MB, free: 11.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.791e-05/0.09468, allocations: 42.5 kB / 446.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.032e-06/0.09469, allocations: 0 / 446.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002589/0.09495, allocations: 109.3 kB / 446.7 MB, free: 11.47 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.09501, allocations: 141 kB / 446.9 MB, free: 11.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.32e-05/0.09511, allocations: 146.3 kB / 447 MB, free: 11.15 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.739e-06/0.09513, allocations: 29.7 kB / 447 MB, free: 11.12 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.978e-05/0.09516, allocations: 88.14 kB / 447.1 MB, free: 11.03 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.393e-05/0.09518, allocations: 7.984 kB / 447.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-06/0.09519, allocations: 4 kB / 447.1 MB, free: 11.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.787e-05/0.09524, allocations: 318.8 kB / 447.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.284e-05/0.09529, allocations: 15.98 kB / 447.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.628e-05/0.09535, allocations: 53.08 kB / 447.5 MB, free: 10.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.813e-05/0.09544, allocations: 69.08 kB / 447.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.09545, allocations: 3.938 kB / 447.6 MB, free: 10.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000128/0.09559, allocations: 97.39 kB / 447.7 MB, free: 10.42 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.09561, allocations: 4.938 kB / 447.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.09562, allocations: 4 kB / 447.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.09564, allocations: 0 / 447.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.022e-05/0.09572, allocations: 12 kB / 447.7 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.054e-06/0.09574, allocations: 7.984 kB / 447.7 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.791e-05/0.09579, allocations: 11.94 kB / 447.7 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.705e-06/0.0958, allocations: 3.938 kB / 447.7 MB, free: 10.38 MB / 298.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.986e-05/0.09587, allocations: 126.8 kB / 447.8 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.55e-05/0.09595, allocations: 65.53 kB / 447.9 MB, free: 10.17 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.957e-05/0.09599, allocations: 19.81 kB / 447.9 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.096, allocations: 4 kB / 447.9 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.096, allocations: 128 / 447.9 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.09601, allocations: 0 / 447.9 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000126/0.09614, allocations: 185.5 kB / 448.1 MB, free: 9.918 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.09615, allocations: 4 kB / 448.1 MB, free: 9.914 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.303e-05/0.09622, allocations: 12.09 kB / 448.1 MB, free: 9.902 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.09623, allocations: 4 kB / 448.1 MB, free: 9.898 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.608e-06/0.09625, allocations: 7.984 kB / 448.1 MB, free: 9.891 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.09625, allocations: 4 kB / 448.1 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.09626, allocations: 3.938 kB / 448.1 MB, free: 9.883 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001502/0.09641, allocations: 198 kB / 448.3 MB, free: 9.664 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.076e-05/0.09646, allocations: 93 kB / 448.4 MB, free: 9.555 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.672e-05/0.09649, allocations: 4 kB / 448.4 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.814e-05/0.09656, allocations: 4 kB / 448.4 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.393e-05/0.0966, allocations: 7.984 kB / 448.4 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-06/0.09661, allocations: 0 / 448.4 MB, free: 9.539 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.156e-05/0.09667, allocations: 119.1 kB / 448.6 MB, free: 9.422 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.09667, allocations: 4 kB / 448.6 MB, free: 9.418 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002105/0.09689, allocations: 8 kB / 448.6 MB, free: 9.41 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003245/0.09722, allocations: 0.7304 MB / 449.3 MB, free: 8.645 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001323/0.09736, allocations: 47.91 kB / 449.3 MB, free: 8.598 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.09737, allocations: 0 / 449.3 MB, free: 8.598 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.671e-05/0.09741, allocations: 16.31 kB / 449.4 MB, free: 8.582 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003989/0.09782, allocations: 39.97 kB / 449.4 MB, free: 8.543 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.09887, allocations: 1.528 MB / 450.9 MB, free: 6.883 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001242/0.09901, allocations: 0.7005 MB / 451.6 MB, free: 6.156 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.335e-05/0.09905, allocations: 8.641 kB / 451.6 MB, free: 6.148 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.903e-05/0.0991, allocations: 19.44 kB / 451.7 MB, free: 6.129 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.0991, allocations: 0 / 451.7 MB, free: 6.129 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01145/0.1106, allocations: 1.785 MB / 453.4 MB, free: 4.34 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000177/0.1108, allocations: 229.8 kB / 453.7 MB, free: 4.078 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.708/1.818, allocations: 0 / 453.7 MB, free: 4.078 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_RealSignals_BackSample.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.BackSample_res.mat does not exist to compare? outputFormat=mat