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.0008998/0.0008998, allocations: 81.28 kB / 16.31 MB, free: 6.449 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.001081/0.001081, allocations: 178.9 kB / 17.21 MB, free: 6.32 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.373/1.373, allocations: 223.3 MB / 241.2 MB, free: 324 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003035/0.0003036, allocations: 4 kB / 300.9 MB, free: 6.324 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1031, allocations: 50.41 MB / 351.3 MB, free: 3.902 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003145/0.1063, allocations: 2.381 MB / 353.7 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001745/0.1081, allocations: 0.8574 MB / 354.6 MB, free: 0.6406 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002859/0.1084, allocations: 4 kB / 354.6 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002342/0.1087, allocations: 47.62 kB / 354.6 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002808/0.109, allocations: 87.3 kB / 354.7 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004971/0.1095, allocations: 175.6 kB / 354.9 MB, free: 340 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006109/0.1101, allocations: 0.4955 MB / 355.4 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002186/0.1103, allocations: 90 kB / 355.5 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003542/0.1107, allocations: 211.3 kB / 355.7 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004601/0.1112, allocations: 239.1 kB / 355.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.407e-05/0.1113, allocations: 24 kB / 355.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001885/0.1114, allocations: 71.94 kB / 356 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001068/0.1116, allocations: 83.7 kB / 356.1 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001269/0.1117, allocations: 89.45 kB / 356.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000421/0.1121, allocations: 375.3 kB / 356.5 MB, free: 14.67 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.1121, allocations: 0 / 356.5 MB, free: 14.67 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1122, allocations: 0 / 356.5 MB, free: 14.67 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.621e-05/0.1122, allocations: 0 / 356.5 MB, free: 14.67 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.001999/0.1142, allocations: 0.6902 MB / 357.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.578e-05/0.1142, allocations: 12.03 kB / 357.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002535/0.1145, allocations: 79.44 kB / 357.3 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001676/0.1147, allocations: 47.48 kB / 357.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005979/0.1153, allocations: 293.4 kB / 357.6 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.75e-05/0.1154, allocations: 25 kB / 357.7 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001215/0.1155, allocations: 43.84 kB / 357.7 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001075/0.1166, allocations: 454.3 kB / 358.2 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.007e-05/0.1166, allocations: 4 kB / 358.2 MB, free: 12.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.258e-05/0.1167, allocations: 16 kB / 358.2 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.1167, allocations: 11.95 kB / 358.2 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009658/0.1177, allocations: 475.7 kB / 358.7 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002412/0.1201, allocations: 1.312 MB / 360 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008136/0.1209, allocations: 373.4 kB / 360.3 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004683/0.1214, allocations: 249.5 kB / 360.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.544e-05/0.1215, allocations: 4.375 kB / 360.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.415e-05/0.1215, allocations: 42.94 kB / 360.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.733e-06/0.1215, allocations: 0 / 360.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=49): time 0.005024/0.1265, allocations: 2.376 MB / 363 MB, free: 7.871 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.646e-05/0.1266, allocations: 59.84 kB / 363.1 MB, free: 7.801 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002716/0.1269, allocations: 246.6 kB / 363.3 MB, free: 7.555 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.016e-05/0.1269, allocations: 45.69 kB / 363.3 MB, free: 7.504 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001378/0.1271, allocations: 176.5 kB / 363.5 MB, free: 7.324 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.1273, allocations: 165.7 kB / 363.7 MB, free: 7.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.427e-05/0.1273, allocations: 8 kB / 363.7 MB, free: 7.152 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001668/0.1275, allocations: 346.8 kB / 364 MB, free: 6.805 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005047/0.128, allocations: 245 kB / 364.3 MB, free: 6.566 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000547/0.1286, allocations: 307.1 kB / 364.6 MB, free: 6.246 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004384/0.129, allocations: 202.1 kB / 364.8 MB, free: 6.051 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.129, allocations: 0 / 364.8 MB, free: 6.051 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00161/0.1306, allocations: 0.7705 MB / 365.5 MB, free: 5.266 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.1307, allocations: 6.344 kB / 365.5 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.1307, allocations: 4 kB / 365.5 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.1318, allocations: 0.5451 MB / 366.1 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002836/0.1321, allocations: 83.84 kB / 366.2 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003031/0.1351, allocations: 3.448 MB / 369.6 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004728/0.1356, allocations: 107.9 kB / 369.7 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.306e-05/0.1357, allocations: 16 kB / 369.7 MB, free: 0.7578 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.0002241/0.1359, allocations: 165.6 kB / 369.9 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.83e-05/0.136, allocations: 47.52 kB / 369.9 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1963/0.3323, allocations: 0.7223 MB / 370.7 MB, free: 24.92 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.566e-05/0.3324, allocations: 5.469 kB / 370.7 MB, free: 24.92 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.3324, allocations: 3.156 kB / 370.7 MB, free: 24.92 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.626e-05/0.3324, allocations: 2.531 kB / 370.7 MB, free: 24.92 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002552/0.335, allocations: 1.275 MB / 371.9 MB, free: 24.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.335, allocations: 1.406 kB / 371.9 MB, free: 24.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002925/0.3353, allocations: 62.56 kB / 372 MB, free: 24.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001068/0.3364, allocations: 0.53 MB / 372.5 MB, free: 24.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.772e-05/0.3364, allocations: 17.94 kB / 372.6 MB, free: 24.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002246/0.3387, allocations: 3.435 MB / 376 MB, free: 21.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.3387, allocations: 3.531 kB / 376 MB, free: 21.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001864/0.3406, allocations: 1.045 MB / 377 MB, free: 21.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001816/0.3408, allocations: 158.6 kB / 377.2 MB, free: 21.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.04e-05/0.3408, allocations: 21.33 kB / 377.2 MB, free: 21.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004432/0.3413, allocations: 95.47 kB / 377.3 MB, free: 21.19 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000234/0.3415, allocations: 107.2 kB / 377.4 MB, free: 21.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.214e-05/0.3416, allocations: 21 kB / 377.4 MB, free: 21.17 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001712/0.3418, allocations: 181.3 kB / 377.6 MB, free: 21.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3418, allocations: 0 / 377.6 MB, free: 21.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005078/0.3423, allocations: 126.2 kB / 377.7 MB, free: 21.05 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.002232/0.3445, allocations: 1.625 MB / 379.4 MB, free: 20.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00149/0.346, allocations: 0.8121 MB / 380.2 MB, free: 19.65 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.346, allocations: 0.625 kB / 380.2 MB, free: 19.65 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008611/0.3469, allocations: 0.548 MB / 380.7 MB, free: 19.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005105/0.3474, allocations: 61.58 kB / 380.8 MB, free: 19.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004607/0.3521, allocations: 2.867 MB / 383.6 MB, free: 17.78 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002612/0.3523, allocations: 0.7997 MB / 384.4 MB, free: 17.08 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001472/0.3525, allocations: 35.31 kB / 384.5 MB, free: 17.07 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001514/0.3526, allocations: 111.2 kB / 384.6 MB, free: 16.99 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3527, allocations: 0 / 384.6 MB, free: 16.99 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02384/0.3765, allocations: 12.05 MB / 396.6 MB, free: 11.09 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001326/0.3767, allocations: 221.6 kB / 396.9 MB, free: 10.85 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.079/2.456, allocations: 0 / 396.9 MB, free: 10.85 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