Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShift,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",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.001127/0.001127, allocations: 179.3 kB / 16.38 MB, free: 5.766 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.304/1.304, allocations: 223.2 MB / 240.3 MB, free: 10.17 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.0008711/0.0008712, allocations: 97.36 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003006/0.0003007, allocations: 8 kB / 351.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3178/0.3181, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1044/0.4226, allocations: 81.38 MB / 483 MB, free: 15.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001902/0.4229, allocations: 71.95 kB / 483 MB, free: 15 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01894/0.4418, allocations: 6.825 MB / 489.9 MB, free: 8.164 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4419, allocations: 4 kB / 489.9 MB, free: 8.16 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.815e-05/0.4419, allocations: 4 kB / 489.9 MB, free: 8.156 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001243/0.4431, allocations: 0.6979 MB / 490.6 MB, free: 7.406 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.474e-05/0.4432, allocations: 8.031 kB / 490.6 MB, free: 7.398 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001225/0.4433, allocations: 79.44 kB / 490.6 MB, free: 7.312 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.4434, allocations: 39.53 kB / 490.7 MB, free: 7.273 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003467/0.4438, allocations: 297.4 kB / 491 MB, free: 6.945 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.703e-05/0.4438, allocations: 29 kB / 491 MB, free: 6.918 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.266e-05/0.4439, allocations: 43.84 kB / 491 MB, free: 6.875 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000828/0.4447, allocations: 426.3 kB / 491.5 MB, free: 6.453 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.236e-05/0.4448, allocations: 11.98 kB / 491.5 MB, free: 6.441 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.811e-05/0.4448, allocations: 15.95 kB / 491.5 MB, free: 6.426 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.171e-05/0.4449, allocations: 12 kB / 491.5 MB, free: 6.414 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008976/0.4458, allocations: 423.7 kB / 491.9 MB, free: 6 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002479/0.4482, allocations: 1.308 MB / 493.2 MB, free: 4.621 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007916/0.4491, allocations: 385 kB / 493.6 MB, free: 4.234 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.564e-05/0.4491, allocations: 8.422 kB / 493.6 MB, free: 4.227 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.4492, allocations: 39 kB / 493.6 MB, free: 4.18 MB / 362.7 MB Notification: Performance of pre-optimization done (n=47): time 2.314e-06/0.4492, allocations: 4 kB / 493.6 MB, free: 4.176 MB / 362.7 MB Notification: Performance of matching and sorting (n=51): time 0.005065/0.4542, allocations: 2.3 MB / 495.9 MB, free: 1.742 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.973e-05/0.4543, allocations: 55.84 kB / 496 MB, free: 1.676 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002029/0.4545, allocations: 209.8 kB / 496.2 MB, free: 1.469 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.958e-05/0.4546, allocations: 37.7 kB / 496.2 MB, free: 1.426 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.81e-05/0.4547, allocations: 176.7 kB / 496.4 MB, free: 1.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001367/0.4548, allocations: 169.6 kB / 496.6 MB, free: 1.082 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.61e-05/0.4549, allocations: 11.98 kB / 496.6 MB, free: 1.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.455, allocations: 338.8 kB / 496.9 MB, free: 0.7305 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000458/0.4555, allocations: 221 kB / 497.1 MB, free: 0.5156 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004723/0.4559, allocations: 283.2 kB / 497.4 MB, free: 224 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003829/0.4563, allocations: 174.2 kB / 497.6 MB, free: 52 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.4564, allocations: 0 / 497.6 MB, free: 52 kB / 362.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001695/0.4581, allocations: 0.7585 MB / 498.3 MB, free: 15.28 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.4581, allocations: 8 kB / 498.4 MB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/0.4581, allocations: 0 / 498.4 MB, free: 15.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009473/0.4591, allocations: 460.9 kB / 498.8 MB, free: 14.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002743/0.4593, allocations: 71.91 kB / 498.9 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002855/0.4622, allocations: 3.409 MB / 0.4905 GB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000549/0.4628, allocations: 104.2 kB / 0.4906 GB, free: 10.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-05/0.4629, allocations: 23.98 kB / 0.4906 GB, free: 10.91 MB / 378.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 () * Number of clocked 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.0002698/0.4631, allocations: 157.8 kB / 0.4908 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.028e-05/0.4632, allocations: 39.53 kB / 0.4908 GB, free: 10.71 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001725/0.465, allocations: 0.7654 MB / 0.4916 GB, free: 9.922 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.465, allocations: 4 kB / 0.4916 GB, free: 9.918 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.465, allocations: 0 / 0.4916 GB, free: 9.918 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.465, allocations: 0 / 0.4916 GB, free: 9.918 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001998/0.467, allocations: 1.213 MB / 0.4928 GB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.467, allocations: 0 / 0.4928 GB, free: 8.641 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002771/0.4673, allocations: 67.89 kB / 0.4928 GB, free: 8.574 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008773/0.4682, allocations: 446 kB / 0.4932 GB, free: 8.129 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.629e-05/0.4682, allocations: 19.98 kB / 0.4933 GB, free: 8.109 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002491/0.4707, allocations: 3.372 MB / 0.4966 GB, free: 4.449 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.4708, allocations: 3.938 kB / 0.4966 GB, free: 4.445 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001902/0.4727, allocations: 0.9656 MB / 0.4975 GB, free: 3.453 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002743/0.473, allocations: 160.6 kB / 0.4977 GB, free: 3.277 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.642e-05/0.4731, allocations: 20 kB / 0.4977 GB, free: 3.258 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004891/0.4736, allocations: 95.91 kB / 0.4978 GB, free: 3.164 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000242/0.4738, allocations: 104.2 kB / 0.4979 GB, free: 3.062 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.803e-05/0.4739, allocations: 27.97 kB / 0.4979 GB, free: 3.035 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001937/0.4741, allocations: 166 kB / 0.4981 GB, free: 2.871 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4741, allocations: 0 / 0.4981 GB, free: 2.871 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006066/0.4747, allocations: 128 kB / 0.4982 GB, free: 2.746 MB / 378.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) * Number of clocked states: 0 () * 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.002332/0.477, allocations: 1.554 MB / 0.4997 GB, free: 1.156 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001546/0.4786, allocations: 0.8288 MB / 0.5005 GB, free: 296 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.4786, allocations: 0 / 0.5005 GB, free: 296 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1832/0.6618, allocations: 0.5205 MB / 0.501 GB, free: 100.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005884/0.6625, allocations: 51.86 kB / 0.5011 GB, free: 100.9 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005875/0.6684, allocations: 3.494 MB / 0.5045 GB, free: 99.37 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003144/0.6687, allocations: 0.8113 MB / 0.5053 GB, free: 98.66 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001589/0.6689, allocations: 28.05 kB / 0.5053 GB, free: 98.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001582/0.669, allocations: 108.2 kB / 0.5054 GB, free: 98.66 MB / 378.7 MB Notification: Performance of SimCode: time 9.62e-07/0.669, allocations: 4 kB / 0.5054 GB, free: 98.65 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02457/0.6936, allocations: 11.52 MB / 0.5166 GB, free: 94.18 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001613/0.6938, allocations: 213.8 kB / 0.5168 GB, free: 93.94 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.236/2.93, allocations: 0 / 0.5168 GB, free: 93.94 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat