Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_cpp_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.002263/0.002262, allocations: 188.4 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.097/2.097, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001139/0.001139, allocations: 92.42 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006337/0.0006341, allocations: 15.98 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3607/0.3614, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1336/0.4952, allocations: 80.9 MB / 455.5 MB, free: 15.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002998/0.4955, allocations: 75.95 kB / 455.6 MB, free: 15.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05024/0.5458, allocations: 10.19 MB / 465.8 MB, free: 5.438 MB / 346.7 MB Notification: Performance of FrontEnd: time 5.951e-06/0.5458, allocations: 4 kB / 465.8 MB, free: 5.434 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.38e-05/0.5459, allocations: 4 kB / 465.8 MB, free: 5.43 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.001854/0.5477, allocations: 0.6315 MB / 466.4 MB, free: 4.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.085e-05/0.5478, allocations: 8.031 kB / 466.4 MB, free: 4.742 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001668/0.548, allocations: 70.53 kB / 466.5 MB, free: 4.664 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004656/0.5485, allocations: 59.52 kB / 466.6 MB, free: 4.605 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006742/0.5491, allocations: 296.6 kB / 466.9 MB, free: 4.277 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001743/0.5493, allocations: 88.05 kB / 466.9 MB, free: 4.18 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000117/0.5495, allocations: 35.91 kB / 467 MB, free: 4.145 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00137/0.5509, allocations: 408.9 kB / 467.4 MB, free: 3.734 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.917e-05/0.5509, allocations: 8 kB / 467.4 MB, free: 3.727 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.116e-05/0.551, allocations: 8 kB / 467.4 MB, free: 3.719 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.551, allocations: 11.98 kB / 467.4 MB, free: 3.707 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001773/0.5528, allocations: 470.3 kB / 467.9 MB, free: 3.246 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002456/0.5553, allocations: 0.8994 MB / 468.8 MB, free: 2.289 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001412/0.5568, allocations: 386.9 kB / 469.1 MB, free: 1.902 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.052e-05/0.5569, allocations: 4.438 kB / 469.1 MB, free: 1.898 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.621e-05/0.5569, allocations: 42.98 kB / 469.2 MB, free: 1.848 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 3.286e-06/0.557, allocations: 4 kB / 469.2 MB, free: 1.844 MB / 346.7 MB Notification: Performance of matching and sorting (n=55): time 0.009595/0.5666, allocations: 2.152 MB / 471.3 MB, free: 15.59 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.004e-05/0.5667, allocations: 89.61 kB / 471.4 MB, free: 15.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004829/0.5672, allocations: 214.2 kB / 471.6 MB, free: 15.26 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001218/0.5673, allocations: 37.7 kB / 471.7 MB, free: 15.22 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.5675, allocations: 195.5 kB / 471.9 MB, free: 15.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002464/0.5677, allocations: 181.4 kB / 472 MB, free: 14.84 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.736e-05/0.5678, allocations: 12 kB / 472.1 MB, free: 14.83 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001542/0.568, allocations: 330.8 kB / 472.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008353/0.5688, allocations: 193 kB / 472.6 MB, free: 14.31 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008787/0.5697, allocations: 240.6 kB / 472.8 MB, free: 14.07 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000808/0.5705, allocations: 190.1 kB / 473 MB, free: 13.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.5706, allocations: 0 / 473 MB, free: 13.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002272/0.5728, allocations: 0.6018 MB / 473.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.168e-05/0.5729, allocations: 11.89 kB / 473.6 MB, free: 13.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.218e-05/0.5729, allocations: 7.984 kB / 473.6 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001275/0.5742, allocations: 238.8 kB / 473.8 MB, free: 13.02 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006561/0.5749, allocations: 79.88 kB / 473.9 MB, free: 12.94 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006621/0.5816, allocations: 2.737 MB / 476.7 MB, free: 10.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006301/0.5822, allocations: 43.92 kB / 476.7 MB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.857e-05/0.5824, allocations: 24.05 kB / 476.7 MB, free: 10.01 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.0003247/0.5827, allocations: 149.8 kB / 476.9 MB, free: 9.852 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.5828, allocations: 31.62 kB / 476.9 MB, free: 9.82 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001696/0.583, allocations: 55.23 kB / 477 MB, free: 9.766 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.355e-05/0.583, allocations: 11.98 kB / 477 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.5831, allocations: 0 / 477 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.377e-06/0.5831, allocations: 3.984 kB / 477 MB, free: 9.75 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003895/0.587, allocations: 1.245 MB / 478.2 MB, free: 8.441 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.009e-05/0.587, allocations: 4 kB / 478.2 MB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006508/0.5877, allocations: 79.78 kB / 478.3 MB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001138/0.5889, allocations: 222.5 kB / 478.5 MB, free: 8.141 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.125e-05/0.589, allocations: 19.98 kB / 478.5 MB, free: 8.121 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006264/0.5953, allocations: 2.671 MB / 481.2 MB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.5953, allocations: 0 / 481.2 MB, free: 5.316 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003427/0.5987, allocations: 0.9551 MB / 482.2 MB, free: 4.332 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004331/0.5992, allocations: 152.7 kB / 482.3 MB, free: 4.164 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001061/0.5993, allocations: 16.06 kB / 482.3 MB, free: 4.148 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005795/0.5999, allocations: 35.97 kB / 482.4 MB, free: 4.113 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002963/0.6003, allocations: 76.25 kB / 482.4 MB, free: 4.039 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.841e-05/0.6003, allocations: 19.98 kB / 482.5 MB, free: 4.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003609/0.6007, allocations: 176.6 kB / 482.6 MB, free: 3.848 MB / 362.7 MB Notification: Performance of sort global known variables: time 4e-07/0.6007, allocations: 4 kB / 482.6 MB, free: 3.844 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001014/0.6017, allocations: 160 kB / 482.8 MB, free: 3.688 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.004167/0.6059, allocations: 1.631 MB / 484.4 MB, free: 2.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002548/0.6085, allocations: 0.6917 MB / 485.1 MB, free: 1.312 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.6086, allocations: 0 / 485.1 MB, free: 1.312 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001559/0.6102, allocations: 471.8 kB / 485.6 MB, free: 0.8438 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005258/0.6107, allocations: 33.31 kB / 485.6 MB, free: 0.8125 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007768/0.6185, allocations: 2.545 MB / 488.2 MB, free: 14.2 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005225/0.6191, allocations: 0.8048 MB / 489 MB, free: 13.37 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004257/0.6195, allocations: 107.4 kB / 489.1 MB, free: 13.26 MB / 378.7 MB Notification: Performance of SimCode: time 8.71e-07/0.6196, allocations: 4 kB / 489.1 MB, free: 13.26 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.935/3.554, allocations: 6.996 MB / 496.1 MB, free: 6.27 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat