Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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) 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.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",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.0009821/0.0009822, allocations: 180.8 kB / 17.01 MB, free: 5.125 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.403/1.403, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.0008409/0.0008409, allocations: 96.09 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00027/0.00027, allocations: 8 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2617/0.262, allocations: 47.57 MB / 375.9 MB, free: 45.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09708/0.3591, allocations: 80.89 MB / 456.8 MB, free: 15.64 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.3594, allocations: 71.97 kB / 456.9 MB, free: 15.57 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02807/0.3875, allocations: 10.2 MB / 467.1 MB, free: 5.352 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.3876, allocations: 0 / 467.1 MB, free: 5.352 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.537e-05/0.3876, allocations: 8 kB / 467.1 MB, free: 5.344 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001138/0.3887, allocations: 0.6276 MB / 467.7 MB, free: 4.668 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/0.3888, allocations: 12.03 kB / 467.7 MB, free: 4.656 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.514e-05/0.3889, allocations: 70.53 kB / 467.8 MB, free: 4.578 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003302/0.3892, allocations: 55.52 kB / 467.8 MB, free: 4.523 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004368/0.3897, allocations: 296.7 kB / 468.1 MB, free: 4.195 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/0.3898, allocations: 88.05 kB / 468.2 MB, free: 4.098 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.062e-05/0.3899, allocations: 31.91 kB / 468.2 MB, free: 4.066 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007525/0.3906, allocations: 416.9 kB / 468.7 MB, free: 3.648 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.3907, allocations: 4 kB / 468.7 MB, free: 3.645 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.816e-05/0.3907, allocations: 15.94 kB / 468.7 MB, free: 3.629 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.358e-06/0.3907, allocations: 8 kB / 468.7 MB, free: 3.621 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009293/0.3916, allocations: 478.2 kB / 469.1 MB, free: 3.152 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001314/0.393, allocations: 0.8955 MB / 470 MB, free: 2.199 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007451/0.3937, allocations: 382.9 kB / 470.4 MB, free: 1.816 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.073e-05/0.3938, allocations: 12.44 kB / 470.4 MB, free: 1.805 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.06e-05/0.3938, allocations: 35 kB / 470.5 MB, free: 1.762 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 1.433e-06/0.3938, allocations: 0 / 470.5 MB, free: 1.762 MB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.004811/0.3986, allocations: 2.16 MB / 472.6 MB, free: 15.5 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.433e-05/0.3987, allocations: 85.66 kB / 472.7 MB, free: 15.39 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002497/0.399, allocations: 214.3 kB / 472.9 MB, free: 15.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.548e-05/0.399, allocations: 37.7 kB / 473 MB, free: 15.13 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.655e-05/0.3991, allocations: 141.1 kB / 473.1 MB, free: 14.99 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.3992, allocations: 181.5 kB / 473.3 MB, free: 14.81 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.73e-05/0.3993, allocations: 8 kB / 473.3 MB, free: 14.8 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3994, allocations: 342.8 kB / 473.6 MB, free: 14.46 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004104/0.3998, allocations: 189 kB / 473.8 MB, free: 14.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004325/0.4003, allocations: 244.6 kB / 474 MB, free: 14.02 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003907/0.4007, allocations: 190.1 kB / 474.2 MB, free: 13.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.4007, allocations: 0 / 474.2 MB, free: 13.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001172/0.4019, allocations: 0.6134 MB / 474.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.185e-05/0.4019, allocations: 7.953 kB / 474.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.4019, allocations: 0 / 474.8 MB, free: 13.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006998/0.4026, allocations: 250.7 kB / 475.1 MB, free: 12.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003125/0.403, allocations: 71.88 kB / 475.2 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003827/0.4068, allocations: 2.742 MB / 477.9 MB, free: 10.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003029/0.4071, allocations: 44.02 kB / 477.9 MB, free: 9.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.127e-05/0.4072, allocations: 23.98 kB / 478 MB, free: 9.957 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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: 0 * Non-linear torn systems: 1 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002268/0.4074, allocations: 157.8 kB / 478.1 MB, free: 9.793 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.487e-05/0.4075, allocations: 31.56 kB / 478.2 MB, free: 9.762 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001146/0.4076, allocations: 51.3 kB / 478.2 MB, free: 9.711 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.4076, allocations: 4 kB / 478.2 MB, free: 9.707 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.4076, allocations: 4 kB / 478.2 MB, free: 9.703 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.015e-06/0.4077, allocations: 3.984 kB / 478.2 MB, free: 9.699 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002189/0.4099, allocations: 1.256 MB / 479.5 MB, free: 8.379 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.595e-06/0.4099, allocations: 0 / 479.5 MB, free: 8.379 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003214/0.4102, allocations: 71.84 kB / 479.5 MB, free: 8.309 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006099/0.4108, allocations: 230.5 kB / 479.8 MB, free: 8.082 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.239e-05/0.4109, allocations: 15.98 kB / 479.8 MB, free: 8.066 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003478/0.4144, allocations: 2.659 MB / 482.4 MB, free: 5.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.4144, allocations: 0 / 482.4 MB, free: 5.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.4161, allocations: 0.9513 MB / 483.4 MB, free: 4.289 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002013/0.4163, allocations: 160.6 kB / 483.5 MB, free: 4.113 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.599e-05/0.4164, allocations: 12 kB / 483.6 MB, free: 4.102 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000307/0.4167, allocations: 35.97 kB / 483.6 MB, free: 4.066 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/0.4169, allocations: 84.31 kB / 483.7 MB, free: 3.984 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.121e-05/0.4169, allocations: 19.98 kB / 483.7 MB, free: 3.965 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002139/0.4171, allocations: 172.6 kB / 483.9 MB, free: 3.797 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4171, allocations: 0 / 483.9 MB, free: 3.797 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006462/0.4178, allocations: 160 kB / 484 MB, free: 3.641 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.002327/0.4201, allocations: 1.642 MB / 485.7 MB, free: 1.961 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001351/0.4215, allocations: 0.6878 MB / 486.3 MB, free: 1.258 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.4215, allocations: 0 / 486.3 MB, free: 1.258 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007583/0.4223, allocations: 479.7 kB / 486.8 MB, free: 0.7812 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003342/0.4226, allocations: 28.39 kB / 486.8 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004128/0.4267, allocations: 2.511 MB / 489.4 MB, free: 14.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000437/0.4272, allocations: 0.8009 MB / 490.2 MB, free: 13.35 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002445/0.4275, allocations: 70.92 kB / 490.2 MB, free: 13.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002016/0.4277, allocations: 107.3 kB / 490.3 MB, free: 13.18 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4277, allocations: 0 / 490.3 MB, free: 13.18 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02479/0.4525, allocations: 9.653 MB / 500 MB, free: 3.543 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001644/0.4527, allocations: 204.6 kB / 0.4885 GB, free: 3.309 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.153/2.605, allocations: 4 kB / 0.4885 GB, free: 3.305 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat