Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",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.001117/0.001117, allocations: 172.4 kB / 14.1 MB, free: 1.223 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.473/1.473, allocations: 205.2 MB / 219.8 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.0008109/0.0008109, allocations: 86.67 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.315e-05/2.318e-05, allocations: 0 / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08674/0.08677, allocations: 47.57 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3059/0.3928, allocations: 80.38 MB / 450.5 MB, free: 12.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002037/0.393, allocations: 74.95 kB / 450.6 MB, free: 12.88 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01871/0.4117, allocations: 6.721 MB / 457.3 MB, free: 7.051 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.4118, allocations: 0 / 457.3 MB, free: 7.051 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.058e-05/0.4118, allocations: 8 kB / 457.3 MB, free: 7.043 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001159/0.413, allocations: 0.6574 MB / 458 MB, free: 6.363 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.726e-05/0.413, allocations: 12.03 kB / 458 MB, free: 6.352 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001212/0.4132, allocations: 78.03 kB / 458 MB, free: 6.289 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.963e-05/0.4132, allocations: 43.53 kB / 458.1 MB, free: 6.246 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003436/0.4136, allocations: 296.1 kB / 458.4 MB, free: 5.941 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.509e-05/0.4136, allocations: 32.05 kB / 458.4 MB, free: 5.922 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.76e-05/0.4137, allocations: 43.3 kB / 458.4 MB, free: 5.891 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006532/0.4144, allocations: 393.5 kB / 458.8 MB, free: 5.617 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.4144, allocations: 3.984 kB / 458.8 MB, free: 5.613 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.051e-05/0.4145, allocations: 15.25 kB / 458.8 MB, free: 5.609 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.4145, allocations: 8 kB / 458.9 MB, free: 5.602 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005918/0.4151, allocations: 379.8 kB / 459.2 MB, free: 5.348 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002278/0.4174, allocations: 1.304 MB / 460.5 MB, free: 4.223 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006319/0.418, allocations: 341.7 kB / 460.9 MB, free: 3.879 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003331/0.4184, allocations: 219 kB / 461.1 MB, free: 3.664 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.335e-05/0.4184, allocations: 4.438 kB / 461.1 MB, free: 3.66 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.4185, allocations: 39 kB / 461.1 MB, free: 3.613 MB / 330.7 MB Notification: Performance of pre-optimization done (n=47): time 2.124e-06/0.4185, allocations: 0 / 461.1 MB, free: 3.613 MB / 330.7 MB Notification: Performance of matching and sorting (n=51): time 0.002942/0.4214, allocations: 1.591 MB / 462.7 MB, free: 1.926 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/0.4215, allocations: 59.84 kB / 462.8 MB, free: 1.852 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001952/0.4217, allocations: 202.9 kB / 463 MB, free: 1.645 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.55e-05/0.4217, allocations: 45.7 kB / 463 MB, free: 1.594 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001044/0.4218, allocations: 164.7 kB / 463.2 MB, free: 1.43 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.422, allocations: 177.6 kB / 463.3 MB, free: 1.254 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.258e-05/0.422, allocations: 12 kB / 463.4 MB, free: 1.242 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.4222, allocations: 342.8 kB / 463.7 MB, free: 0.8984 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003234/0.4225, allocations: 185.1 kB / 463.9 MB, free: 0.7188 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00036/0.4229, allocations: 259.2 kB / 464.1 MB, free: 460 kB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002671/0.4231, allocations: 155.2 kB / 464.3 MB, free: 304 kB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.4231, allocations: 0 / 464.3 MB, free: 304 kB / 330.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001447/0.4246, allocations: 0.6883 MB / 465 MB, free: 15.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.137e-05/0.4246, allocations: 11.98 kB / 465 MB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.852e-05/0.4247, allocations: 4 kB / 465 MB, free: 15.58 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000937/0.4256, allocations: 438.3 kB / 465.4 MB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002833/0.4259, allocations: 75.91 kB / 465.5 MB, free: 15.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002639/0.4285, allocations: 3.382 MB / 468.9 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005206/0.4291, allocations: 104 kB / 469 MB, free: 11.29 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.2e-05/0.4292, allocations: 27.94 kB / 469 MB, free: 11.27 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0001683/0.4293, allocations: 144.7 kB / 469.1 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.533e-05/0.4294, allocations: 31.62 kB / 469.2 MB, free: 11.09 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001441/0.4309, allocations: 0.7028 MB / 469.9 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.4309, allocations: 8 kB / 469.9 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.575e-06/0.4309, allocations: 0 / 469.9 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.4309, allocations: 3.984 kB / 469.9 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001724/0.4326, allocations: 1.159 MB / 471 MB, free: 9.125 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.349e-06/0.4326, allocations: 3.984 kB / 471 MB, free: 9.121 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002668/0.4329, allocations: 59.91 kB / 471.1 MB, free: 9.062 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007969/0.4337, allocations: 422.3 kB / 471.5 MB, free: 8.641 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.499e-05/0.4338, allocations: 15.98 kB / 471.5 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002436/0.4362, allocations: 3.366 MB / 474.9 MB, free: 4.969 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4363, allocations: 0 / 474.9 MB, free: 4.969 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001409/0.4377, allocations: 0.8874 MB / 475.8 MB, free: 4.055 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002211/0.4379, allocations: 152.7 kB / 475.9 MB, free: 3.887 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.827e-05/0.438, allocations: 24.03 kB / 476 MB, free: 3.863 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004761/0.4385, allocations: 99.91 kB / 476.1 MB, free: 3.766 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002188/0.4387, allocations: 112.2 kB / 476.2 MB, free: 3.656 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.031e-05/0.4388, allocations: 23.97 kB / 476.2 MB, free: 3.633 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001628/0.4389, allocations: 167.1 kB / 476.4 MB, free: 3.469 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4389, allocations: 0 / 476.4 MB, free: 3.469 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004969/0.4394, allocations: 127.9 kB / 476.5 MB, free: 3.344 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,clutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.001776/0.4412, allocations: 1.479 MB / 478 MB, free: 1.828 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001163/0.4424, allocations: 0.7623 MB / 478.7 MB, free: 1.027 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4424, allocations: 0 / 478.7 MB, free: 1.027 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000688/0.4431, allocations: 0.5021 MB / 479.2 MB, free: 0.5 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003824/0.4435, allocations: 44.53 kB / 479.3 MB, free: 468 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001961/0.4455, allocations: 0.9007 MB / 480.2 MB, free: 15.52 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003741/0.4459, allocations: 0.8075 MB / 481 MB, free: 14.68 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001303/0.446, allocations: 23.3 kB / 481 MB, free: 14.66 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001673/0.4462, allocations: 108.8 kB / 481.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of SimCode: time 4.61e-07/0.4462, allocations: 0 / 481.1 MB, free: 14.55 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02572/0.4719, allocations: 11.54 MB / 492.6 MB, free: 3.008 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001932/0.4722, allocations: 190.8 kB / 492.8 MB, free: 2.781 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.074/2.546, allocations: 3.938 kB / 492.8 MB, free: 2.777 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat