Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",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.002542/0.002542, allocations: 180.1 kB / 13.66 MB, free: 1.66 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.144/2.144, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001146/0.001146, allocations: 89.94 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.363e-05/3.39e-05, allocations: 0 / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1064, allocations: 47.58 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4498/0.5563, allocations: 82.2 MB / 451.4 MB, free: 10.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002784/0.5566, allocations: 74.95 kB / 451.5 MB, free: 10.66 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05798/0.6146, allocations: 11.86 MB / 463.3 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.6147, allocations: 0 / 463.3 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.664e-05/0.6147, allocations: 8 kB / 463.3 MB, free: 0.5273 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002252/0.617, allocations: 0.6999 MB / 464 MB, free: 15.81 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.004e-05/0.6171, allocations: 12.03 kB / 464 MB, free: 15.8 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001801/0.6173, allocations: 73.84 kB / 464.1 MB, free: 15.74 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005551/0.6178, allocations: 71.03 kB / 464.2 MB, free: 15.67 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007464/0.6186, allocations: 323.9 kB / 464.5 MB, free: 15.35 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001852/0.6188, allocations: 103.6 kB / 464.6 MB, free: 15.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001403/0.619, allocations: 47.22 kB / 464.6 MB, free: 15.22 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.6203, allocations: 0.504 MB / 465.2 MB, free: 14.85 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.189e-05/0.6204, allocations: 4 kB / 465.2 MB, free: 14.84 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.164e-05/0.6205, allocations: 19.38 kB / 465.2 MB, free: 14.84 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.739e-05/0.6205, allocations: 8 kB / 465.2 MB, free: 14.83 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001592/0.6221, allocations: 0.5401 MB / 465.7 MB, free: 14.36 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003694/0.6259, allocations: 1.161 MB / 466.9 MB, free: 13.14 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001438/0.6274, allocations: 466.9 kB / 467.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008797/0.6283, allocations: 291.3 kB / 467.6 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001046/0.6284, allocations: 8.562 kB / 467.6 MB, free: 12.38 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.2e-05/0.6285, allocations: 39.12 kB / 467.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of pre-optimization done (n=63): time 6.923e-06/0.6285, allocations: 0 / 467.7 MB, free: 12.33 MB / 346.7 MB Notification: Performance of matching and sorting (n=71): time 0.006271/0.6348, allocations: 1.993 MB / 469.7 MB, free: 10.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.885e-05/0.6349, allocations: 85.89 kB / 469.7 MB, free: 10.14 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005423/0.6355, allocations: 247.1 kB / 470 MB, free: 9.902 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001874/0.6357, allocations: 45.7 kB / 470 MB, free: 9.852 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001602/0.6359, allocations: 208.1 kB / 470.2 MB, free: 9.648 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003188/0.6362, allocations: 236.7 kB / 470.5 MB, free: 9.414 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.118e-05/0.6363, allocations: 12 kB / 470.5 MB, free: 9.402 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001654/0.6365, allocations: 338.8 kB / 470.8 MB, free: 9.062 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007424/0.6372, allocations: 233.5 kB / 471 MB, free: 8.836 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008264/0.6381, allocations: 304 kB / 471.3 MB, free: 8.527 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006816/0.6388, allocations: 218 kB / 471.5 MB, free: 8.312 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.6388, allocations: 0 / 471.5 MB, free: 8.312 MB / 346.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002531/0.6413, allocations: 0.7788 MB / 472.3 MB, free: 7.523 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.441e-05/0.6414, allocations: 7.984 kB / 472.3 MB, free: 7.516 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.73e-05/0.6415, allocations: 4 kB / 472.3 MB, free: 7.512 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001814/0.6433, allocations: 438.7 kB / 472.8 MB, free: 7.082 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008308/0.6442, allocations: 83.88 kB / 472.8 MB, free: 7 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002151/0.6464, allocations: 1.005 MB / 473.9 MB, free: 5.969 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001074/0.6475, allocations: 80.03 kB / 473.9 MB, free: 5.891 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001525/0.6477, allocations: 31.98 kB / 474 MB, free: 5.859 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 32} Notification: Performance of prepare postOptimizeDAE: time 0.0002824/0.648, allocations: 140.9 kB / 474.1 MB, free: 5.715 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001662/0.6482, allocations: 47.39 kB / 474.1 MB, free: 5.668 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002636/0.6508, allocations: 0.825 MB / 475 MB, free: 4.824 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/0.6509, allocations: 4 kB / 475 MB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.6509, allocations: 0 / 475 MB, free: 4.82 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.609e-05/0.6509, allocations: 7.984 kB / 475 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005005/0.6559, allocations: 1.649 MB / 476.6 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.266e-06/0.656, allocations: 64 / 476.6 MB, free: 3.098 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007833/0.6568, allocations: 91.88 kB / 476.7 MB, free: 3.008 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001621/0.6584, allocations: 400.6 kB / 477.1 MB, free: 2.613 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001147/0.6586, allocations: 27.97 kB / 477.1 MB, free: 2.586 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001821/0.6604, allocations: 0.97 MB / 478.1 MB, free: 1.59 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.731e-06/0.6604, allocations: 3.984 kB / 478.1 MB, free: 1.586 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003579/0.664, allocations: 1.193 MB / 479.3 MB, free: 360 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004624/0.6645, allocations: 184.6 kB / 479.5 MB, free: 156 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001523/0.6647, allocations: 20 kB / 479.5 MB, free: 136 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008837/0.6656, allocations: 68 kB / 479.6 MB, free: 68 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003795/0.666, allocations: 108.3 kB / 479.7 MB, free: 15.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001018/0.6661, allocations: 27.97 kB / 479.7 MB, free: 15.93 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003716/0.6665, allocations: 215 kB / 479.9 MB, free: 15.72 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6665, allocations: 0 / 479.9 MB, free: 15.72 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008246/0.6674, allocations: 152 kB / 480.1 MB, free: 15.57 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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 29} Notification: Performance of Backend phase and start with SimCode phase: time 0.004453/0.6718, allocations: 1.915 MB / 482 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002172/0.6741, allocations: 0.6431 MB / 482.6 MB, free: 12.96 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.6741, allocations: 0 / 482.6 MB, free: 12.96 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001205/0.6753, allocations: 343.1 kB / 483 MB, free: 12.63 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006611/0.676, allocations: 53.09 kB / 483 MB, free: 12.58 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004798/0.6809, allocations: 1.105 MB / 484.1 MB, free: 11.43 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005397/0.6815, allocations: 0.8407 MB / 485 MB, free: 10.56 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000497/0.682, allocations: 136.8 kB / 485.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of SimCode: time 1.432e-06/0.682, allocations: 0 / 485.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.042/3.724, allocations: 8.573 MB / 493.7 MB, free: 1.848 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat