Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_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.001003/0.001003, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.368/1.368, 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.0007865/0.0007865, allocations: 94.97 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002795/0.0002793, allocations: 4 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2764, allocations: 47.58 MB / 375.9 MB, free: 45.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09563/0.3721, allocations: 80.18 MB / 456.1 MB, free: 456 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002221/0.3724, allocations: 71.97 kB / 456.2 MB, free: 384 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02572/0.3981, allocations: 9.411 MB / 465.6 MB, free: 6.945 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3982, allocations: 0 / 465.6 MB, free: 6.945 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.398e-05/0.3982, allocations: 11.94 kB / 465.6 MB, free: 6.934 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001005/0.3992, allocations: 0.5847 MB / 466.2 MB, free: 6.301 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.968e-05/0.3992, allocations: 8.031 kB / 466.2 MB, free: 6.293 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.159e-05/0.3993, allocations: 74.47 kB / 466.3 MB, free: 6.211 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002983/0.3996, allocations: 47.61 kB / 466.3 MB, free: 6.164 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000397/0.4, allocations: 270.6 kB / 466.6 MB, free: 5.859 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001137/0.4002, allocations: 91.91 kB / 466.7 MB, free: 5.758 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.399e-05/0.4002, allocations: 28 kB / 466.7 MB, free: 5.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006559/0.4009, allocations: 369.2 kB / 467 MB, free: 5.352 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.4009, allocations: 0 / 467 MB, free: 5.352 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.049e-05/0.401, allocations: 12 kB / 467.1 MB, free: 5.34 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.401, allocations: 15.92 kB / 467.1 MB, free: 5.324 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008031/0.4018, allocations: 417.9 kB / 467.5 MB, free: 4.918 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001792/0.4036, allocations: 1.172 MB / 468.6 MB, free: 3.672 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006488/0.4043, allocations: 325.5 kB / 469 MB, free: 3.344 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.029e-05/0.4043, allocations: 4 kB / 469 MB, free: 3.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/0.4043, allocations: 42.56 kB / 469 MB, free: 3.289 MB / 346.7 MB Notification: Performance of pre-optimization done (n=43): time 1.483e-06/0.4044, allocations: 0 / 469 MB, free: 3.289 MB / 346.7 MB Notification: Performance of matching and sorting (n=45): time 0.004395/0.4088, allocations: 1.891 MB / 470.9 MB, free: 1.285 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.161e-05/0.4088, allocations: 88.86 kB / 471 MB, free: 1.18 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002331/0.4091, allocations: 195.8 kB / 471.2 MB, free: 0.9844 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.4091, allocations: 29.7 kB / 471.2 MB, free: 0.9492 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.944e-05/0.4092, allocations: 144.6 kB / 471.4 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001068/0.4093, allocations: 145.9 kB / 471.5 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.693e-05/0.4093, allocations: 8 kB / 471.5 MB, free: 0.6484 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.4095, allocations: 338.8 kB / 471.8 MB, free: 316 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003355/0.4098, allocations: 160.8 kB / 472 MB, free: 156 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003822/0.4102, allocations: 233.8 kB / 472.2 MB, free: 15.91 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003165/0.4105, allocations: 152.8 kB / 472.4 MB, free: 15.76 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.4105, allocations: 0 / 472.4 MB, free: 15.76 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001006/0.4116, allocations: 0.5473 MB / 472.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.4116, allocations: 11.95 kB / 472.9 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.072e-06/0.4116, allocations: 0 / 472.9 MB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006785/0.4123, allocations: 234.6 kB / 473.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00024/0.4125, allocations: 63.89 kB / 473.2 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003569/0.4161, allocations: 2.692 MB / 475.9 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002488/0.4164, allocations: 39.95 kB / 475.9 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.554e-05/0.4164, allocations: 16 kB / 476 MB, free: 12.02 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: 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.0001696/0.4166, allocations: 161.8 kB / 476.1 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.347e-05/0.4167, allocations: 23.72 kB / 476.1 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.558e-05/0.4168, allocations: 42.98 kB / 476.2 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.4168, allocations: 4 kB / 476.2 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.844e-06/0.4168, allocations: 3.938 kB / 476.2 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.4168, allocations: 3.984 kB / 476.2 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001723/0.4185, allocations: 1.077 MB / 477.3 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.4186, allocations: 4 kB / 477.3 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002114/0.4188, allocations: 43.97 kB / 477.3 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005954/0.4194, allocations: 228.9 kB / 477.5 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.46e-05/0.4194, allocations: 15.98 kB / 477.6 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003333/0.4228, allocations: 2.655 MB / 480.2 MB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.4228, allocations: 0 / 480.2 MB, free: 7.559 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001403/0.4242, allocations: 0.8018 MB / 481 MB, free: 6.738 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001775/0.4244, allocations: 144.8 kB / 481.2 MB, free: 6.578 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.711e-05/0.4244, allocations: 4 kB / 481.2 MB, free: 6.574 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002554/0.4247, allocations: 32.05 kB / 481.2 MB, free: 6.543 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/0.4249, allocations: 71.86 kB / 481.3 MB, free: 6.473 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.081e-05/0.4249, allocations: 19.98 kB / 481.3 MB, free: 6.453 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001962/0.4251, allocations: 152.3 kB / 481.4 MB, free: 6.305 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4251, allocations: 4 kB / 481.4 MB, free: 6.301 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006612/0.4258, allocations: 151.9 kB / 481.6 MB, free: 6.152 MB / 362.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.001862/0.4277, allocations: 1.381 MB / 483 MB, free: 4.742 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001153/0.4288, allocations: 0.6139 MB / 483.6 MB, free: 4.109 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.4289, allocations: 256 / 483.6 MB, free: 4.109 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006445/0.4295, allocations: 429 kB / 484 MB, free: 3.676 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002823/0.4298, allocations: 27.94 kB / 484 MB, free: 3.648 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003444/0.4333, allocations: 2.64 MB / 486.7 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003217/0.4336, allocations: 0.792 MB / 487.5 MB, free: 128 kB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001952/0.4338, allocations: 54.95 kB / 487.5 MB, free: 72 kB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001688/0.434, allocations: 83.39 kB / 487.6 MB, free: 15.99 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.434, allocations: 4 kB / 487.6 MB, free: 15.99 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.457, allocations: 8.708 MB / 496.3 MB, free: 7.301 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001988/0.4573, allocations: 220.6 kB / 496.5 MB, free: 7.051 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.894/2.351, allocations: 0 / 496.5 MB, free: 7.051 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat