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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000896/0.0008961, allocations: 94.48 kB / 16.3 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009075/0.0009077, allocations: 175.3 kB / 17.19 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.358/1.358, allocations: 223.2 MB / 241.1 MB, free: 14.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000257/0.000257, allocations: 8 kB / 300.8 MB, free: 6.125 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1116, allocations: 50.41 MB / 351.2 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002889/0.1146, allocations: 2.272 MB / 353.5 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00155/0.1162, allocations: 0.8731 MB / 354.4 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001553/0.1163, allocations: 11.94 kB / 354.4 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001511/0.1165, allocations: 39.69 kB / 354.4 MB, free: 488 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002904/0.1168, allocations: 127.6 kB / 354.6 MB, free: 360 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000414/0.1172, allocations: 155.7 kB / 354.7 MB, free: 204 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004287/0.1177, allocations: 356.4 kB / 355.1 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001905/0.1179, allocations: 82.02 kB / 355.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002441/0.1181, allocations: 211.3 kB / 355.3 MB, free: 15.56 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002921/0.1184, allocations: 243.2 kB / 355.6 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.899e-05/0.1185, allocations: 20 kB / 355.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001544/0.1186, allocations: 63.91 kB / 355.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.1188, allocations: 91.69 kB / 355.7 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.848e-05/0.1188, allocations: 85.52 kB / 355.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003728/0.1192, allocations: 375.2 kB / 356.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.1192, allocations: 0 / 356.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1192, allocations: 0 / 356.2 MB, free: 14.7 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.222e-06/0.1192, allocations: 0 / 356.2 MB, free: 14.7 MB / 302.1 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.001325/0.1206, allocations: 0.694 MB / 356.9 MB, free: 13.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.1206, allocations: 15.91 kB / 356.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001442/0.1208, allocations: 83.44 kB / 357 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.769e-05/0.1209, allocations: 43.53 kB / 357 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003762/0.1213, allocations: 293.4 kB / 357.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.344e-05/0.1213, allocations: 25 kB / 357.3 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.257e-05/0.1214, allocations: 39.91 kB / 357.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008196/0.1222, allocations: 446.3 kB / 357.8 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.1222, allocations: 4 kB / 357.8 MB, free: 12.97 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.875e-05/0.1223, allocations: 27.94 kB / 357.8 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.1223, allocations: 8 kB / 357.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009025/0.1232, allocations: 471.7 kB / 358.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002295/0.1255, allocations: 1.304 MB / 359.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008032/0.1264, allocations: 373.5 kB / 360 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.683e-05/0.1264, allocations: 8.359 kB / 360 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.1264, allocations: 42.92 kB / 360 MB, free: 10.66 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.804e-06/0.1264, allocations: 0 / 360 MB, free: 10.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.005425/0.1319, allocations: 2.378 MB / 362.4 MB, free: 8.145 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.528e-05/0.132, allocations: 59.84 kB / 362.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000259/0.1322, allocations: 250.6 kB / 362.7 MB, free: 7.824 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.622e-05/0.1323, allocations: 41.7 kB / 362.8 MB, free: 7.777 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.1324, allocations: 168.6 kB / 362.9 MB, free: 7.605 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.1326, allocations: 161.8 kB / 363.1 MB, free: 7.445 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.319e-05/0.1326, allocations: 16 kB / 363.1 MB, free: 7.43 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.1328, allocations: 346.8 kB / 363.4 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004675/0.1332, allocations: 241 kB / 363.7 MB, free: 6.848 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005143/0.1338, allocations: 303.2 kB / 364 MB, free: 6.531 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004163/0.1342, allocations: 202.1 kB / 364.2 MB, free: 6.336 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1342, allocations: 3.938 kB / 364.2 MB, free: 6.332 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001547/0.1358, allocations: 0.7626 MB / 364.9 MB, free: 5.555 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.1358, allocations: 10.81 kB / 364.9 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.755e-06/0.1358, allocations: 0 / 364.9 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.1369, allocations: 0.5528 MB / 365.5 MB, free: 4.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000294/0.1372, allocations: 75.89 kB / 365.6 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002814/0.14, allocations: 3.472 MB / 369 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005279/0.1405, allocations: 100.2 kB / 369.1 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.34e-05/0.1406, allocations: 24 kB / 369.2 MB, free: 1.023 MB / 302.1 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): 43 * 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 prepare postOptimizeDAE: time 0.0002322/0.1408, allocations: 165.6 kB / 369.3 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.623e-05/0.1409, allocations: 35.53 kB / 369.4 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001486/0.1424, allocations: 0.7326 MB / 370.1 MB, free: 72 kB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/0.1424, allocations: 8 kB / 370.1 MB, free: 64 kB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1424, allocations: 7.891 kB / 370.1 MB, free: 56 kB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.1425, allocations: 3.984 kB / 370.1 MB, free: 52 kB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2169/0.3594, allocations: 1.271 MB / 371.4 MB, free: 24.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.224e-06/0.3595, allocations: 1.172 kB / 371.4 MB, free: 24.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003062/0.3598, allocations: 56.77 kB / 371.4 MB, free: 24.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00118/0.361, allocations: 0.5297 MB / 372 MB, free: 24.21 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.957e-05/0.361, allocations: 16.81 kB / 372 MB, free: 24.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002492/0.3635, allocations: 3.447 MB / 375.4 MB, free: 21.22 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3636, allocations: 0 / 375.4 MB, free: 21.22 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002225/0.3658, allocations: 1.05 MB / 376.5 MB, free: 21.06 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002559/0.3661, allocations: 159.2 kB / 376.6 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.738e-05/0.3662, allocations: 15.5 kB / 376.7 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005165/0.3667, allocations: 98.19 kB / 376.7 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002923/0.367, allocations: 111.4 kB / 376.9 MB, free: 20.96 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.122e-05/0.367, allocations: 22.59 kB / 376.9 MB, free: 20.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002123/0.3673, allocations: 179.9 kB / 377.1 MB, free: 20.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.3673, allocations: 0 / 377.1 MB, free: 20.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005916/0.3679, allocations: 125.8 kB / 377.2 MB, free: 20.88 MB / 302.1 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 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,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.002462/0.3703, allocations: 1.63 MB / 378.8 MB, free: 20.02 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001689/0.372, allocations: 0.8109 MB / 379.6 MB, free: 19.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3721, allocations: 8.688 kB / 379.6 MB, free: 19.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008771/0.3729, allocations: 0.537 MB / 380.2 MB, free: 19.29 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004177/0.3734, allocations: 52.52 kB / 380.2 MB, free: 19.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005522/0.3789, allocations: 3.612 MB / 383.8 MB, free: 17.01 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/0.3793, allocations: 0.8109 MB / 384.6 MB, free: 16.31 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002061/0.3796, allocations: 35.08 kB / 384.7 MB, free: 16.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000162/0.3797, allocations: 111.8 kB / 384.8 MB, free: 16.22 MB / 302.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3797, allocations: 0 / 384.8 MB, free: 16.22 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02872/0.4085, allocations: 12.01 MB / 396.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000208/0.4087, allocations: 220.4 kB / 397 MB, free: 10.3 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.071/2.479, allocations: 0 / 397 MB, free: 10.3 MB / 302.1 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