Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001181/0.001181, allocations: 201.5 kB / 17.08 MB, free: 5.062 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.211/1.211, allocations: 227.2 MB / 245 MB, free: 7.574 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008482/0.0008482, allocations: 111.4 kB / 297.3 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002116/0.0002116, allocations: 15.98 kB / 358 MB, free: 9.441 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1952/0.1955, allocations: 51.47 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08792/0.2834, allocations: 77.88 MB / 487.4 MB, free: 12.74 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002167/0.2837, allocations: 83.94 kB / 487.5 MB, free: 12.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004314/0.288, allocations: 1.622 MB / 489.1 MB, free: 11.05 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.288, allocations: 0 / 489.1 MB, free: 11.05 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.288, allocations: 0 / 489.1 MB, free: 11.05 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003666/0.2884, allocations: 382.9 kB / 489.5 MB, free: 10.63 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.2885, allocations: 12.03 kB / 489.5 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.384e-05/0.2885, allocations: 34.56 kB / 489.5 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001181/0.2886, allocations: 23.83 kB / 489.5 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001838/0.2888, allocations: 197.1 kB / 489.7 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.356e-06/0.2888, allocations: 4 kB / 489.7 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.338e-05/0.2889, allocations: 4 kB / 489.7 MB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002465/0.2891, allocations: 117.8 kB / 489.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.2891, allocations: 0 / 489.8 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.598e-06/0.2891, allocations: 4 kB / 489.8 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.2892, allocations: 0 / 489.8 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.008e-05/0.2892, allocations: 23.98 kB / 489.9 MB, free: 10.15 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003338/0.2896, allocations: 290.5 kB / 490.2 MB, free: 9.809 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.98e-05/0.2897, allocations: 71.78 kB / 490.2 MB, free: 9.711 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.2897, allocations: 0 / 490.2 MB, free: 9.711 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.893e-05/0.2898, allocations: 34.62 kB / 490.3 MB, free: 9.668 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.2898, allocations: 0 / 490.3 MB, free: 9.668 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002485/0.29, allocations: 93.7 kB / 490.3 MB, free: 9.57 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.996e-05/0.2901, allocations: 106.8 kB / 490.5 MB, free: 9.441 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.934e-05/0.2902, allocations: 129 kB / 490.6 MB, free: 9.309 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.797e-05/0.2902, allocations: 25.7 kB / 490.6 MB, free: 9.277 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.349e-05/0.2903, allocations: 92.12 kB / 490.7 MB, free: 9.184 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.794e-05/0.2903, allocations: 3.906 kB / 490.7 MB, free: 9.18 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.015e-06/0.2903, allocations: 192 / 490.7 MB, free: 9.18 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.2904, allocations: 322.8 kB / 491 MB, free: 8.855 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.548e-05/0.2905, allocations: 11.98 kB / 491 MB, free: 8.844 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.713e-05/0.2906, allocations: 39.36 kB / 491.1 MB, free: 8.793 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.502e-05/0.2906, allocations: 20 kB / 491.1 MB, free: 8.773 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2906, allocations: 0 / 491.1 MB, free: 8.773 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001373/0.2908, allocations: 73.55 kB / 491.2 MB, free: 8.695 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.2908, allocations: 4 kB / 491.2 MB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.2908, allocations: 0 / 491.2 MB, free: 8.691 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.2908, allocations: 8.125 kB / 491.2 MB, free: 8.684 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.191e-05/0.2909, allocations: 11.98 kB / 491.2 MB, free: 8.672 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.2909, allocations: 0 / 491.2 MB, free: 8.672 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.202e-05/0.2909, allocations: 7.938 kB / 491.2 MB, free: 8.664 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.031e-05/0.291, allocations: 12 kB / 491.2 MB, free: 8.652 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 7.391e-05/0.291, allocations: 121.8 kB / 491.3 MB, free: 8.523 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.141e-05/0.2911, allocations: 49.55 kB / 491.4 MB, free: 8.469 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.595e-05/0.2912, allocations: 15.92 kB / 491.4 MB, free: 8.445 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.2912, allocations: 0 / 491.4 MB, free: 8.445 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.2912, allocations: 4 kB / 491.4 MB, free: 8.441 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.2912, allocations: 0 / 491.4 MB, free: 8.441 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001624/0.2914, allocations: 181.5 kB / 491.6 MB, free: 8.215 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.2914, allocations: 0 / 491.6 MB, free: 8.215 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.986e-05/0.2914, allocations: 15.92 kB / 491.6 MB, free: 8.199 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.175e-06/0.2914, allocations: 0 / 491.6 MB, free: 8.199 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.047e-05/0.2915, allocations: 4 kB / 491.6 MB, free: 8.195 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.2915, allocations: 3.938 kB / 491.6 MB, free: 8.191 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-06/0.2915, allocations: 0 / 491.6 MB, free: 8.191 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001894/0.2917, allocations: 208.6 kB / 491.8 MB, free: 7.953 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.354e-05/0.2917, allocations: 89 kB / 491.9 MB, free: 7.848 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.2918, allocations: 12 kB / 491.9 MB, free: 7.836 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.908e-05/0.2918, allocations: 4 kB / 491.9 MB, free: 7.832 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.577e-05/0.2919, allocations: 3.984 kB / 491.9 MB, free: 7.828 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.887e-06/0.2919, allocations: 0 / 491.9 MB, free: 7.828 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.468e-05/0.292, allocations: 118 kB / 492 MB, free: 7.715 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.292, allocations: 0 / 492 MB, free: 7.715 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002111/0.2922, allocations: 4 kB / 492 MB, free: 7.711 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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.0004887/0.2927, allocations: 0.8863 MB / 492.9 MB, free: 6.793 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001246/0.2928, allocations: 35.92 kB / 492.9 MB, free: 6.758 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.2928, allocations: 3.938 kB / 492.9 MB, free: 6.754 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.652e-05/0.2929, allocations: 11.98 kB / 492.9 MB, free: 6.742 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002325/0.2931, allocations: 35.95 kB / 493 MB, free: 6.707 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009123/0.294, allocations: 0.9665 MB / 494 MB, free: 5.672 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002974/0.2943, allocations: 0.7044 MB / 494.7 MB, free: 4.941 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.285e-05/0.2944, allocations: 4.188 kB / 494.7 MB, free: 4.938 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.27e-05/0.2944, allocations: 11.44 kB / 494.7 MB, free: 4.926 MB / 362.7 MB Notification: Performance of SimCode: time 5.51e-07/0.2944, allocations: 0 / 494.7 MB, free: 4.926 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01136/0.3058, allocations: 1.443 MB / 496.1 MB, free: 3.633 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001537/0.306, allocations: 194.2 kB / 496.3 MB, free: 3.395 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.422/1.728, allocations: 0 / 496.3 MB, free: 3.395 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.mat does not exist to compare? outputFormat=mat