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.002703/0.002703, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.143/2.143, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001126/0.001125, allocations: 86.81 kB / 262.1 MB, free: 13.89 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.422e-05/2.435e-05, allocations: 4 kB / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3716/0.3717, allocations: 47.56 MB / 362.4 MB, free: 45.7 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1914/0.5632, allocations: 81.55 MB / 444 MB, free: 4.664 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002829/0.5635, allocations: 73 kB / 444.1 MB, free: 4.594 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05797/0.6215, allocations: 11.79 MB / 455.8 MB, free: 8.82 MB / 347.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.6216, allocations: 0 / 455.8 MB, free: 8.82 MB / 347.1 MB Notification: Performance of Transformations before backend: time 3.141e-05/0.6216, allocations: 8 kB / 455.9 MB, free: 8.812 MB / 347.1 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.002283/0.6239, allocations: 0.7013 MB / 456.6 MB, free: 8.07 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.655e-05/0.624, allocations: 12.03 kB / 456.6 MB, free: 8.059 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006033/0.6246, allocations: 59.42 kB / 456.6 MB, free: 8 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008389/0.6255, allocations: 333.3 kB / 456.9 MB, free: 7.633 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001957/0.6257, allocations: 84.12 kB / 457 MB, free: 7.535 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001348/0.6258, allocations: 31.91 kB / 457.1 MB, free: 7.504 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001548/0.6274, allocations: 0.5207 MB / 457.6 MB, free: 6.984 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/0.6287, allocations: 461.2 kB / 458 MB, free: 6.52 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.395e-05/0.6287, allocations: 8 kB / 458 MB, free: 6.512 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.603e-05/0.6288, allocations: 0 / 458 MB, free: 6.512 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.6289, allocations: 8 kB / 458 MB, free: 6.504 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003438/0.6323, allocations: 1.078 MB / 459.1 MB, free: 5.383 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001254/0.6336, allocations: 437.4 kB / 459.6 MB, free: 4.941 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007251/0.6344, allocations: 266.5 kB / 459.8 MB, free: 4.68 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.373e-05/0.6345, allocations: 16.5 kB / 459.8 MB, free: 4.664 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.093e-05/0.6346, allocations: 39.41 kB / 459.9 MB, free: 4.617 MB / 347.1 MB Notification: Performance of pre-optimization done (n=63): time 3.747e-06/0.6346, allocations: 7.938 kB / 459.9 MB, free: 4.609 MB / 347.1 MB Notification: Performance of matching and sorting (n=71): time 0.00646/0.6411, allocations: 1.863 MB / 461.7 MB, free: 2.656 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.081e-05/0.6412, allocations: 89.89 kB / 461.8 MB, free: 2.551 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004041/0.6416, allocations: 218.3 kB / 462 MB, free: 2.328 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001245/0.6417, allocations: 33.7 kB / 462.1 MB, free: 2.289 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001651/0.6419, allocations: 208 kB / 462.3 MB, free: 2.082 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003141/0.6422, allocations: 232.6 kB / 462.5 MB, free: 1.852 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.719e-05/0.6423, allocations: 3.938 kB / 462.5 MB, free: 1.848 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.6425, allocations: 338.8 kB / 462.8 MB, free: 1.508 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006379/0.6431, allocations: 221.5 kB / 463.1 MB, free: 1.293 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007097/0.6439, allocations: 290.4 kB / 463.3 MB, free: 0.9961 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008199/0.6447, allocations: 212.5 kB / 463.5 MB, free: 0.7891 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.6447, allocations: 0 / 463.5 MB, free: 0.7891 MB / 347.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.002558/0.6473, allocations: 0.7437 MB / 464.3 MB, free: 36 kB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/0.6474, allocations: 4 kB / 464.3 MB, free: 32 kB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.321e-05/0.6474, allocations: 0 / 464.3 MB, free: 32 kB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001704/0.6491, allocations: 418.7 kB / 464.7 MB, free: 15.62 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007907/0.6499, allocations: 87.88 kB / 464.8 MB, free: 15.54 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002166/0.6521, allocations: 1.063 MB / 465.9 MB, free: 14.45 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00101/0.6532, allocations: 72.02 kB / 465.9 MB, free: 14.38 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001246/0.6533, allocations: 31.98 kB / 466 MB, free: 14.35 MB / 363.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real 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.0003164/0.6537, allocations: 117.5 kB / 466.1 MB, free: 14.23 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002472/0.6562, allocations: 0.7094 MB / 466.8 MB, free: 13.51 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001798/0.6564, allocations: 39.53 kB / 466.8 MB, free: 13.47 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002573/0.659, allocations: 0.7628 MB / 467.6 MB, free: 12.7 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.747e-05/0.659, allocations: 8 kB / 467.6 MB, free: 12.69 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.659, allocations: 0 / 467.6 MB, free: 12.69 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.6591, allocations: 3.984 kB / 467.6 MB, free: 12.69 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00486/0.6639, allocations: 1.544 MB / 469.1 MB, free: 11.07 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.085e-06/0.664, allocations: 0 / 469.1 MB, free: 11.07 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007794/0.6648, allocations: 87.88 kB / 469.2 MB, free: 10.99 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00158/0.6664, allocations: 388.6 kB / 469.6 MB, free: 10.61 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001137/0.6665, allocations: 19.97 kB / 469.6 MB, free: 10.59 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001996/0.6685, allocations: 1.013 MB / 470.6 MB, free: 9.547 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/0.6686, allocations: 0 / 470.6 MB, free: 9.547 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003704/0.6723, allocations: 1.135 MB / 471.8 MB, free: 8.379 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004905/0.6729, allocations: 176.6 kB / 471.9 MB, free: 8.188 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/0.673, allocations: 7.984 kB / 471.9 MB, free: 8.18 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008779/0.6739, allocations: 71.95 kB / 472 MB, free: 8.109 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003372/0.6743, allocations: 96.36 kB / 472.1 MB, free: 8.016 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001151/0.6744, allocations: 39.95 kB / 472.2 MB, free: 7.977 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0002882/0.6747, allocations: 180.4 kB / 472.3 MB, free: 7.805 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.9e-07/0.6747, allocations: 0 / 472.3 MB, free: 7.805 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0008556/0.6756, allocations: 131.9 kB / 472.5 MB, free: 7.676 MB / 363.1 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.004271/0.6799, allocations: 1.852 MB / 474.3 MB, free: 5.781 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001986/0.682, allocations: 0.6015 MB / 474.9 MB, free: 5.172 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.682, allocations: 0 / 474.9 MB, free: 5.172 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.6831, allocations: 337.8 kB / 475.2 MB, free: 4.844 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006181/0.6838, allocations: 37.47 kB / 475.3 MB, free: 4.809 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004566/0.6884, allocations: 1.058 MB / 476.3 MB, free: 3.699 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006342/0.6891, allocations: 0.8293 MB / 477.2 MB, free: 2.844 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004918/0.6896, allocations: 131.4 kB / 477.3 MB, free: 2.715 MB / 363.1 MB Notification: Performance of SimCode: time 1.223e-06/0.6896, allocations: 0 / 477.3 MB, free: 2.715 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.907/3.597, allocations: 8.474 MB / 485.8 MB, free: 10.29 MB / 379.1 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