Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.001124/0.001124, allocations: 180.7 kB / 16.38 MB, free: 5.762 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.369/1.369, allocations: 223.2 MB / 240.3 MB, free: 11.89 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.0009833/0.0009832, allocations: 102.1 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000264/0.0002641, allocations: 7.984 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2642, allocations: 50.4 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09617/0.3605, allocations: 81.17 MB / 482.7 MB, free: 15.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002365/0.3607, allocations: 79.89 kB / 482.8 MB, free: 15.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02671/0.3875, allocations: 9.547 MB / 492.4 MB, free: 5.668 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3875, allocations: 0 / 492.4 MB, free: 5.668 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.99e-05/0.3876, allocations: 4 kB / 492.4 MB, free: 5.664 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001152/0.3887, allocations: 0.5924 MB / 493 MB, free: 5.023 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.594e-05/0.3888, allocations: 8.031 kB / 493 MB, free: 5.016 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001012/0.3889, allocations: 58.55 kB / 493 MB, free: 4.949 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003108/0.3892, allocations: 51.59 kB / 493.1 MB, free: 4.898 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004504/0.3897, allocations: 286.4 kB / 493.4 MB, free: 4.578 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001508/0.3898, allocations: 91.95 kB / 493.5 MB, free: 4.477 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.499e-05/0.3899, allocations: 24 kB / 493.5 MB, free: 4.453 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007039/0.3906, allocations: 373.3 kB / 493.8 MB, free: 4.074 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.326e-05/0.3906, allocations: 7.922 kB / 493.8 MB, free: 4.066 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.859e-05/0.3907, allocations: 15.95 kB / 493.9 MB, free: 4.051 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.3907, allocations: 4 kB / 493.9 MB, free: 4.047 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008375/0.3915, allocations: 413.9 kB / 494.3 MB, free: 3.645 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00185/0.3934, allocations: 1.163 MB / 495.4 MB, free: 2.406 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006692/0.3941, allocations: 347.2 kB / 495.8 MB, free: 2.059 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.318e-05/0.3941, allocations: 4 kB / 495.8 MB, free: 2.055 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.099e-05/0.3942, allocations: 34.56 kB / 495.8 MB, free: 2.012 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 3.657e-06/0.3942, allocations: 0 / 495.8 MB, free: 2.012 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.004664/0.3989, allocations: 1.883 MB / 497.7 MB, free: 16 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.116e-05/0.399, allocations: 84.86 kB / 497.8 MB, free: 15.91 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002662/0.3992, allocations: 189.5 kB / 498 MB, free: 15.72 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.466e-05/0.3993, allocations: 41.7 kB / 498 MB, free: 15.67 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.145e-05/0.3994, allocations: 140.8 kB / 498.1 MB, free: 15.53 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.3995, allocations: 145.9 kB / 498.3 MB, free: 15.38 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.515e-05/0.3996, allocations: 8 kB / 498.3 MB, free: 15.38 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.3997, allocations: 342.8 kB / 498.6 MB, free: 15.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003624/0.4001, allocations: 164.8 kB / 498.8 MB, free: 14.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004033/0.4005, allocations: 221.9 kB / 499 MB, free: 14.64 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003537/0.4008, allocations: 160.8 kB / 499.2 MB, free: 14.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.4009, allocations: 4 kB / 499.2 MB, free: 14.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001091/0.402, allocations: 0.5395 MB / 499.7 MB, free: 13.93 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.402, allocations: 4 kB / 499.7 MB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-06/0.402, allocations: 8.125 kB / 499.7 MB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007163/0.4027, allocations: 240.6 kB / 499.9 MB, free: 13.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002402/0.403, allocations: 51.91 kB / 0.4883 GB, free: 13.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003814/0.4068, allocations: 2.705 MB / 0.4909 GB, free: 10.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002782/0.4071, allocations: 36.03 kB / 0.491 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.312e-05/0.4072, allocations: 16 kB / 0.491 GB, free: 10.74 MB / 378.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 () * Number of clocked 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.0002098/0.4074, allocations: 162.9 kB / 0.4911 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.146e-05/0.4075, allocations: 23.72 kB / 0.4912 GB, free: 10.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.701e-05/0.4076, allocations: 46.98 kB / 0.4912 GB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.4076, allocations: 4 kB / 0.4912 GB, free: 10.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.4076, allocations: 4 kB / 0.4912 GB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.4076, allocations: 0 / 0.4912 GB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00184/0.4095, allocations: 1.069 MB / 0.4922 GB, free: 9.363 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.701e-06/0.4095, allocations: 4 kB / 0.4923 GB, free: 9.359 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002332/0.4097, allocations: 55.83 kB / 0.4923 GB, free: 9.305 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006531/0.4104, allocations: 224.9 kB / 0.4925 GB, free: 9.082 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.072e-05/0.4104, allocations: 15.98 kB / 0.4925 GB, free: 9.066 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003515/0.414, allocations: 2.647 MB / 0.4951 GB, free: 6.289 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.414, allocations: 4.031 kB / 0.4951 GB, free: 6.285 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001441/0.4154, allocations: 0.7941 MB / 0.4959 GB, free: 5.473 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002069/0.4156, allocations: 140.8 kB / 0.496 GB, free: 5.316 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.263e-05/0.4157, allocations: 20.02 kB / 0.4961 GB, free: 5.297 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002741/0.416, allocations: 27.97 kB / 0.4961 GB, free: 5.27 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001714/0.4162, allocations: 67.88 kB / 0.4961 GB, free: 5.203 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.553e-05/0.4162, allocations: 19.98 kB / 0.4962 GB, free: 5.184 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001948/0.4164, allocations: 157.5 kB / 0.4963 GB, free: 5.031 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4164, allocations: 0 / 0.4963 GB, free: 5.031 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007179/0.4172, allocations: 144 kB / 0.4965 GB, free: 4.891 MB / 378.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) * 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: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.002058/0.4192, allocations: 1.404 MB / 0.4978 GB, free: 3.461 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001352/0.4206, allocations: 0.6096 MB / 0.4984 GB, free: 2.836 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.4206, allocations: 0 / 0.4984 GB, free: 2.836 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007791/0.4214, allocations: 437.5 kB / 0.4988 GB, free: 2.395 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.4218, allocations: 23.92 kB / 0.4989 GB, free: 2.371 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1907/0.6125, allocations: 2.641 MB / 0.5014 GB, free: 101.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003049/0.6128, allocations: 0.7868 MB / 0.5022 GB, free: 100.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002614/0.6131, allocations: 59.09 kB / 0.5023 GB, free: 100.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001989/0.6133, allocations: 84.45 kB / 0.5023 GB, free: 100.8 MB / 378.7 MB Notification: Performance of SimCode: time 1.152e-06/0.6133, allocations: 0 / 0.5023 GB, free: 100.8 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02179/0.6351, allocations: 8.716 MB / 0.5109 GB, free: 99.41 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001455/0.6353, allocations: 213.1 kB / 0.5111 GB, free: 99.17 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.086/2.722, allocations: 0 / 0.5111 GB, free: 99.17 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat