Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.FirstGrounded,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001162/0.001162, allocations: 180.5 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 223.2 MB / 240.3 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009187/0.0009185, allocations: 90.42 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002752/0.0002752, allocations: 8 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2454/0.2457, allocations: 50.42 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09714/0.3429, allocations: 78.4 MB / 480 MB, free: 2.039 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002551/0.3432, allocations: 77.14 kB / 480.1 MB, free: 1.965 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01088/0.3541, allocations: 3.899 MB / 484 MB, free: 14.06 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.098e-06/0.3542, allocations: 4 kB / 484 MB, free: 14.05 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.436e-05/0.3542, allocations: 4 kB / 484 MB, free: 14.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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006677/0.3549, allocations: 495.1 kB / 484.4 MB, free: 13.52 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.3549, allocations: 12.03 kB / 484.5 MB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.253e-05/0.355, allocations: 54.48 kB / 484.5 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.883e-05/0.355, allocations: 23.72 kB / 484.5 MB, free: 13.42 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002716/0.3553, allocations: 229 kB / 484.8 MB, free: 13.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.076e-05/0.3553, allocations: 12.44 kB / 484.8 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.266e-05/0.3554, allocations: 27.91 kB / 484.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003794/0.3558, allocations: 209.9 kB / 485 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.3558, allocations: 0 / 485 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.552e-05/0.3558, allocations: 19.95 kB / 485 MB, free: 12.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.734e-06/0.3559, allocations: 4 kB / 485 MB, free: 12.87 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002662/0.3561, allocations: 133.6 kB / 485.2 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001089/0.3572, allocations: 0.7054 MB / 485.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003103/0.3576, allocations: 146.5 kB / 486 MB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.52e-05/0.3576, allocations: 4 kB / 486 MB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.3576, allocations: 34.5 kB / 486 MB, free: 11.79 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.924e-06/0.3576, allocations: 0 / 486 MB, free: 11.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.001864/0.3595, allocations: 0.8944 MB / 486.9 MB, free: 10.8 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.054e-05/0.3596, allocations: 55.41 kB / 487 MB, free: 10.74 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000165/0.3598, allocations: 158.4 kB / 487.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.159e-05/0.3598, allocations: 29.7 kB / 487.2 MB, free: 10.54 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.206e-05/0.3599, allocations: 144.2 kB / 487.3 MB, free: 10.39 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.118e-05/0.36, allocations: 82.75 kB / 487.4 MB, free: 10.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.287e-05/0.36, allocations: 8 kB / 487.4 MB, free: 10.3 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001391/0.3602, allocations: 330.8 kB / 487.7 MB, free: 9.965 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001443/0.3603, allocations: 63.91 kB / 487.8 MB, free: 9.902 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001454/0.3605, allocations: 96.2 kB / 487.9 MB, free: 9.793 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001373/0.3606, allocations: 71.98 kB / 488 MB, free: 9.723 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.3606, allocations: 0 / 488 MB, free: 9.723 MB / 362.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004497/0.3611, allocations: 259.5 kB / 488.2 MB, free: 9.461 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.709e-05/0.3611, allocations: 4 kB / 488.2 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.3611, allocations: 0 / 488.2 MB, free: 9.457 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001624/0.3613, allocations: 40.83 kB / 488.3 MB, free: 9.414 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002324/0.3615, allocations: 56.03 kB / 488.3 MB, free: 9.359 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001203/0.3628, allocations: 1.382 MB / 489.7 MB, free: 7.844 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001158/0.3629, allocations: 12.09 kB / 489.7 MB, free: 7.832 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.736e-05/0.3629, allocations: 12 kB / 489.7 MB, free: 7.82 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (28): * Single equations (assignments): 27 * 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 prepare postOptimizeDAE: time 0.0001489/0.3631, allocations: 137.7 kB / 489.8 MB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.205e-05/0.3631, allocations: 19.81 kB / 489.9 MB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.165e-05/0.3632, allocations: 21.88 kB / 489.9 MB, free: 7.633 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.3632, allocations: 4 kB / 489.9 MB, free: 7.629 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.3632, allocations: 0 / 489.9 MB, free: 7.629 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.3632, allocations: 7.984 kB / 489.9 MB, free: 7.621 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009294/0.3641, allocations: 0.6608 MB / 490.6 MB, free: 6.887 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.3642, allocations: 0 / 490.6 MB, free: 6.887 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002167/0.3644, allocations: 43.92 kB / 490.6 MB, free: 6.844 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001133/0.3645, allocations: 36.83 kB / 490.6 MB, free: 6.805 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.068e-05/0.3645, allocations: 8.281 kB / 490.6 MB, free: 6.797 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001103/0.3656, allocations: 1.398 MB / 492 MB, free: 5.266 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.3657, allocations: 8.016 kB / 492.1 MB, free: 5.258 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005742/0.3662, allocations: 423 kB / 492.5 MB, free: 4.812 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.233e-05/0.3663, allocations: 100.8 kB / 492.6 MB, free: 4.695 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.452e-05/0.3663, allocations: 7.953 kB / 492.6 MB, free: 4.688 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/0.3665, allocations: 12 kB / 492.6 MB, free: 4.676 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.975e-05/0.3665, allocations: 15.97 kB / 492.6 MB, free: 4.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.28e-05/0.3666, allocations: 12 kB / 492.6 MB, free: 4.648 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.54e-05/0.3667, allocations: 124.8 kB / 492.7 MB, free: 4.527 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3667, allocations: 0 / 492.7 MB, free: 4.527 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003222/0.367, allocations: 60 kB / 492.8 MB, free: 4.469 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (21): * Single equations (assignments): 20 * 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.0009591/0.368, allocations: 1.11 MB / 493.9 MB, free: 3.316 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005397/0.3685, allocations: 290.6 kB / 494.2 MB, free: 3.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.3685, allocations: 0 / 494.2 MB, free: 3.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003109/0.3688, allocations: 226.9 kB / 494.4 MB, free: 2.785 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003526/0.3692, allocations: 35.91 kB / 494.4 MB, free: 2.75 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002599/0.3718, allocations: 2.125 MB / 496.6 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003675/0.3722, allocations: 0.7524 MB / 497.3 MB, free: 15.78 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 7.987e-05/0.3723, allocations: 13.95 kB / 497.3 MB, free: 15.77 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.3724, allocations: 67.41 kB / 497.4 MB, free: 15.7 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.3724, allocations: 0 / 497.4 MB, free: 15.7 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01638/0.3888, allocations: 4.225 MB / 0.4899 GB, free: 11.66 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002211/0.3891, allocations: 211.3 kB / 0.4901 GB, free: 11.41 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.749/2.139, allocations: 0 / 0.4901 GB, free: 11.41 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_FirstGrounded.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.FirstGrounded_res.mat does not exist to compare? outputFormat=mat