Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.002511/0.002511, allocations: 182.1 kB / 13.66 MB, free: 1.664 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.157/2.157, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001153/0.001153, allocations: 97.92 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.222e-05/3.238e-05, allocations: 0 / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09999/0.1001, allocations: 47.58 MB / 369.2 MB, free: 2.105 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4121/0.5123, allocations: 80.09 MB / 449.3 MB, free: 13.14 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002676/0.5126, allocations: 71.14 kB / 449.3 MB, free: 13.11 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04585/0.5585, allocations: 9.394 MB / 458.7 MB, free: 5.152 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.5585, allocations: 0 / 458.7 MB, free: 5.152 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.445e-05/0.5586, allocations: 4 kB / 458.7 MB, free: 5.148 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001514/0.5601, allocations: 0.5683 MB / 459.3 MB, free: 4.555 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.632e-05/0.5602, allocations: 8.031 kB / 459.3 MB, free: 4.547 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001235/0.5603, allocations: 73.53 kB / 459.4 MB, free: 4.484 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004683/0.5608, allocations: 43.61 kB / 459.4 MB, free: 4.441 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005569/0.5614, allocations: 269.6 kB / 459.7 MB, free: 4.164 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001724/0.5616, allocations: 87.28 kB / 459.8 MB, free: 4.074 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.717e-05/0.5617, allocations: 35.53 kB / 459.8 MB, free: 4.051 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008993/0.5626, allocations: 348.7 kB / 460.1 MB, free: 3.785 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.282e-05/0.5626, allocations: 0 / 460.1 MB, free: 3.785 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.577e-05/0.5627, allocations: 19.56 kB / 460.2 MB, free: 3.777 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.5627, allocations: 8 kB / 460.2 MB, free: 3.77 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.5637, allocations: 377.9 kB / 460.5 MB, free: 3.496 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00296/0.5667, allocations: 1.171 MB / 461.7 MB, free: 2.418 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009145/0.5677, allocations: 311 kB / 462 MB, free: 2.102 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004475/0.5682, allocations: 160.8 kB / 462.2 MB, free: 1.941 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.013e-05/0.5682, allocations: 12.14 kB / 462.2 MB, free: 1.93 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.594e-05/0.5683, allocations: 38.56 kB / 462.2 MB, free: 1.883 MB / 330.7 MB Notification: Performance of pre-optimization done (n=43): time 3.557e-06/0.5683, allocations: 3.938 kB / 462.2 MB, free: 1.879 MB / 330.7 MB Notification: Performance of matching and sorting (n=45): time 0.00381/0.5721, allocations: 1.315 MB / 463.5 MB, free: 480 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.921e-05/0.5722, allocations: 92.78 kB / 463.6 MB, free: 368 kB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000348/0.5726, allocations: 189.6 kB / 463.8 MB, free: 172 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.063e-05/0.5727, allocations: 37.64 kB / 463.9 MB, free: 128 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001501/0.5729, allocations: 199 kB / 464 MB, free: 15.93 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001873/0.5731, allocations: 149.8 kB / 464.2 MB, free: 15.78 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.902e-05/0.5731, allocations: 4 kB / 464.2 MB, free: 15.77 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.5733, allocations: 334.8 kB / 464.5 MB, free: 15.44 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004505/0.5737, allocations: 148.9 kB / 464.7 MB, free: 15.29 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005057/0.5743, allocations: 201.9 kB / 464.9 MB, free: 15.07 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000428/0.5747, allocations: 142.3 kB / 465 MB, free: 14.94 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.5747, allocations: 0 / 465 MB, free: 14.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001506/0.5762, allocations: 0.5005 MB / 465.5 MB, free: 14.43 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.126e-05/0.5763, allocations: 7.953 kB / 465.5 MB, free: 14.42 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.5763, allocations: 0 / 465.5 MB, free: 14.42 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001171/0.5775, allocations: 242.1 kB / 465.8 MB, free: 14.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004927/0.578, allocations: 55.91 kB / 465.8 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005848/0.5839, allocations: 2.633 MB / 468.4 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005411/0.5845, allocations: 27.98 kB / 468.5 MB, free: 11.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.82e-05/0.5846, allocations: 24.05 kB / 468.5 MB, free: 11.31 MB / 346.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: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001974/0.5848, allocations: 133.8 kB / 468.6 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000102/0.5849, allocations: 27.66 kB / 468.6 MB, free: 11.15 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001298/0.5851, allocations: 42.77 kB / 468.7 MB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.456e-06/0.5851, allocations: 4 kB / 468.7 MB, free: 11.11 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.5851, allocations: 4 kB / 468.7 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.5851, allocations: 0 / 468.7 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002673/0.5878, allocations: 1.027 MB / 469.7 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.528e-06/0.5879, allocations: 4 kB / 469.7 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004827/0.5883, allocations: 43.95 kB / 469.8 MB, free: 9.965 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001063/0.5894, allocations: 228.9 kB / 470 MB, free: 9.738 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-05/0.5895, allocations: 11.98 kB / 470 MB, free: 9.727 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00562/0.5951, allocations: 2.589 MB / 472.6 MB, free: 7 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.534e-06/0.5952, allocations: 0 / 472.6 MB, free: 7 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001952/0.5972, allocations: 0.7318 MB / 473.3 MB, free: 6.25 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000288/0.5975, allocations: 148.7 kB / 473.5 MB, free: 6.086 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.104e-05/0.5976, allocations: 16 kB / 473.5 MB, free: 6.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004941/0.5981, allocations: 28.11 kB / 473.5 MB, free: 6.043 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002819/0.5984, allocations: 75.8 kB / 473.6 MB, free: 5.969 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.35e-05/0.5985, allocations: 19.98 kB / 473.6 MB, free: 5.949 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002386/0.5987, allocations: 152.3 kB / 473.8 MB, free: 5.801 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.807e-06/0.5988, allocations: 0 / 473.8 MB, free: 5.801 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0009301/0.5997, allocations: 139.9 kB / 473.9 MB, free: 5.664 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * 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: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.002628/0.6023, allocations: 1.331 MB / 475.2 MB, free: 4.301 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001701/0.6041, allocations: 0.5759 MB / 475.8 MB, free: 3.711 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.6042, allocations: 0 / 475.8 MB, free: 3.711 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001041/0.6052, allocations: 400.6 kB / 476.2 MB, free: 3.305 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004569/0.6057, allocations: 32.67 kB / 476.2 MB, free: 3.277 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002118/0.6078, allocations: 0.6372 MB / 476.9 MB, free: 2.598 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004649/0.6083, allocations: 0.7917 MB / 477.7 MB, free: 1.777 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003214/0.6087, allocations: 87.39 kB / 477.7 MB, free: 1.691 MB / 346.7 MB Notification: Performance of SimCode: time 1.273e-06/0.6087, allocations: 0 / 477.7 MB, free: 1.691 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.19/3.799, allocations: 6.125 MB / 483.9 MB, free: 11.56 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat