Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.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.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001635/0.001635, allocations: 199 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.256/1.256, allocations: 227.2 MB / 245 MB, free: 7.605 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008923/0.0008921, allocations: 94.59 kB / 297.2 MB, free: 6.191 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000249/0.0002489, allocations: 4 kB / 358 MB, free: 9.453 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2586, allocations: 51.48 MB / 409.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09839/0.357, allocations: 79.23 MB / 488.7 MB, free: 11.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000244/0.3573, allocations: 71.97 kB / 488.8 MB, free: 11.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01127/0.3686, allocations: 4.26 MB / 493.1 MB, free: 7.055 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3686, allocations: 0 / 493.1 MB, free: 7.055 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.717e-05/0.3687, allocations: 8 kB / 493.1 MB, free: 7.047 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.000627/0.3693, allocations: 498.8 kB / 493.5 MB, free: 6.512 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.459e-05/0.3693, allocations: 12.03 kB / 493.6 MB, free: 6.5 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.146e-05/0.3694, allocations: 54.55 kB / 493.6 MB, free: 6.438 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001463/0.3696, allocations: 47.61 kB / 493.7 MB, free: 6.391 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002803/0.3699, allocations: 223.4 kB / 493.9 MB, free: 6.129 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.789e-05/0.3699, allocations: 20.39 kB / 493.9 MB, free: 6.109 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.572e-05/0.3699, allocations: 24 kB / 493.9 MB, free: 6.086 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003305/0.3703, allocations: 191.3 kB / 494.1 MB, free: 5.891 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.3703, allocations: 0 / 494.1 MB, free: 5.891 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.29e-05/0.3703, allocations: 12 kB / 494.1 MB, free: 5.879 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.027e-06/0.3703, allocations: 8 kB / 494.1 MB, free: 5.871 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002591/0.3706, allocations: 145.6 kB / 494.3 MB, free: 5.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009133/0.3715, allocations: 0.6305 MB / 494.9 MB, free: 5.047 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002887/0.3718, allocations: 174.5 kB / 495.1 MB, free: 4.867 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.22e-05/0.3719, allocations: 96 / 495.1 MB, free: 4.867 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.077e-05/0.3719, allocations: 50.48 kB / 495.1 MB, free: 4.809 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.102e-06/0.3719, allocations: 3.938 kB / 495.1 MB, free: 4.805 MB / 362.7 MB Notification: Performance of matching and sorting (n=32): time 0.001762/0.3737, allocations: 1.06 MB / 496.2 MB, free: 3.648 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.191e-05/0.3737, allocations: 59.56 kB / 496.2 MB, free: 3.578 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001375/0.3739, allocations: 162.9 kB / 496.4 MB, free: 3.414 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.3739, allocations: 33.64 kB / 496.4 MB, free: 3.375 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.213e-05/0.374, allocations: 144.7 kB / 496.6 MB, free: 3.23 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.189e-05/0.3741, allocations: 118.3 kB / 496.7 MB, free: 3.113 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.059e-05/0.3741, allocations: 4 kB / 496.7 MB, free: 3.109 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.3742, allocations: 334.8 kB / 497 MB, free: 2.773 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.3743, allocations: 71.95 kB / 497.1 MB, free: 2.703 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001482/0.3745, allocations: 102.8 kB / 497.2 MB, free: 2.594 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001485/0.3746, allocations: 85.62 kB / 497.3 MB, free: 2.512 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.3746, allocations: 0 / 497.3 MB, free: 2.512 MB / 362.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000484/0.3751, allocations: 299.8 kB / 497.6 MB, free: 2.211 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.3752, allocations: 8 kB / 497.6 MB, free: 2.203 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.3752, allocations: 3.953 kB / 497.6 MB, free: 2.199 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001637/0.3753, allocations: 48.89 kB / 497.6 MB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002425/0.3756, allocations: 59.91 kB / 497.7 MB, free: 2.09 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001269/0.3769, allocations: 1.577 MB / 499.3 MB, free: 388 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001246/0.377, allocations: 12.03 kB / 499.3 MB, free: 376 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.835e-05/0.377, allocations: 11.98 kB / 499.3 MB, free: 364 kB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (32): * Single equations (assignments): 31 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001374/0.3772, allocations: 142.3 kB / 499.4 MB, free: 212 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.273e-05/0.3772, allocations: 27.78 kB / 499.5 MB, free: 184 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.719e-05/0.3773, allocations: 30.66 kB / 499.5 MB, free: 152 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.3773, allocations: 0 / 499.5 MB, free: 152 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.3773, allocations: 4 kB / 499.5 MB, free: 148 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.503e-06/0.3773, allocations: 3.984 kB / 499.5 MB, free: 144 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001008/0.3783, allocations: 0.7823 MB / 0.4885 GB, free: 15.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/0.3784, allocations: 7.953 kB / 0.4886 GB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002639/0.3786, allocations: 60 kB / 0.4886 GB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001185/0.3788, allocations: 40.81 kB / 0.4886 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.903e-05/0.3788, allocations: 8 kB / 0.4887 GB, free: 15.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009633/0.3798, allocations: 1.39 MB / 0.49 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3798, allocations: 0 / 0.49 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006205/0.3804, allocations: 0.5154 MB / 0.4905 GB, free: 13.08 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.94e-05/0.3805, allocations: 92.95 kB / 0.4906 GB, free: 12.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.794e-05/0.3805, allocations: 11.95 kB / 0.4906 GB, free: 12.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/0.3806, allocations: 12 kB / 0.4906 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.96e-05/0.3807, allocations: 27.91 kB / 0.4907 GB, free: 12.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.218e-05/0.3807, allocations: 7.938 kB / 0.4907 GB, free: 12.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.229e-05/0.3808, allocations: 131.2 kB / 0.4908 GB, free: 12.78 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3808, allocations: 4 kB / 0.4908 GB, free: 12.78 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003775/0.3812, allocations: 71.94 kB / 0.4909 GB, free: 12.71 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (29): * Single equations (assignments): 28 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009678/0.3822, allocations: 1.263 MB / 0.4921 GB, free: 11.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005792/0.3828, allocations: 350.4 kB / 0.4924 GB, free: 11.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.3828, allocations: 128 / 0.4924 GB, free: 11.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000311/0.3831, allocations: 246.5 kB / 0.4927 GB, free: 10.79 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003245/0.3835, allocations: 35.41 kB / 0.4927 GB, free: 10.75 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00246/0.3859, allocations: 1.988 MB / 0.4946 GB, free: 8.699 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003183/0.3863, allocations: 0.7678 MB / 0.4954 GB, free: 7.906 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 9.01e-05/0.3864, allocations: 18.3 kB / 0.4954 GB, free: 7.887 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.3865, allocations: 79.41 kB / 0.4955 GB, free: 7.809 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.3865, allocations: 0 / 0.4955 GB, free: 7.809 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01817/0.4047, allocations: 4.686 MB / 0.5001 GB, free: 3.277 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001709/0.4049, allocations: 194.4 kB / 0.5002 GB, free: 3.035 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.699/2.104, allocations: 4.062 kB / 0.5002 GB, free: 3.031 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_First.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.First_res.mat does not exist to compare? outputFormat=mat