Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001057/0.001057, allocations: 100.5 kB / 17 MB, free: 6.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001907/0.001907, allocations: 191.2 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002413/0.0002414, allocations: 8 kB / 306.8 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1049, allocations: 51.49 MB / 358.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003222/0.1082, allocations: 2.519 MB / 360.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001554/0.1098, allocations: 0.9829 MB / 361.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001528/0.11, allocations: 4 kB / 361.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002535/0.1102, allocations: 59.56 kB / 361.9 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002925/0.1105, allocations: 139.2 kB / 362 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000258/0.1108, allocations: 127.8 kB / 362.1 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004935/0.1113, allocations: 0.5227 MB / 362.6 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001927/0.1115, allocations: 86.02 kB / 362.7 MB, free: 9.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002631/0.1118, allocations: 227.2 kB / 362.9 MB, free: 9.098 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003137/0.1121, allocations: 255.1 kB / 363.2 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.615e-05/0.1122, allocations: 24 kB / 363.2 MB, free: 8.824 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001518/0.1123, allocations: 67.94 kB / 363.3 MB, free: 8.758 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001495/0.1125, allocations: 99.62 kB / 363.4 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.309e-05/0.1126, allocations: 93.52 kB / 363.5 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004497/0.113, allocations: 415.2 kB / 363.9 MB, free: 8.156 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.113, allocations: 0 / 363.9 MB, free: 8.156 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.113, allocations: 0 / 363.9 MB, free: 8.156 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.345e-06/0.1131, allocations: 3.938 kB / 363.9 MB, free: 8.152 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001314/0.1144, allocations: 0.729 MB / 364.6 MB, free: 7.375 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/0.1144, allocations: 12.03 kB / 364.6 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001372/0.1146, allocations: 83.52 kB / 364.7 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.272e-05/0.1147, allocations: 47.44 kB / 364.8 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003894/0.1151, allocations: 305.3 kB / 365.1 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.3e-05/0.1151, allocations: 29 kB / 365.1 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.926e-05/0.1152, allocations: 39.95 kB / 365.1 MB, free: 6.812 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008066/0.116, allocations: 434.3 kB / 365.5 MB, free: 6.383 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/0.116, allocations: 15.98 kB / 365.6 MB, free: 6.367 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.285e-05/0.1161, allocations: 19.94 kB / 365.6 MB, free: 6.348 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.1161, allocations: 8 kB / 365.6 MB, free: 6.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008986/0.117, allocations: 439.7 kB / 366 MB, free: 5.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002262/0.1193, allocations: 1.339 MB / 367.4 MB, free: 4.504 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008745/0.1202, allocations: 401 kB / 367.7 MB, free: 4.098 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004831/0.1207, allocations: 250.1 kB / 368 MB, free: 3.852 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.521e-05/0.1207, allocations: 8.375 kB / 368 MB, free: 3.844 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.772e-05/0.1207, allocations: 43 kB / 368 MB, free: 3.793 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.583e-06/0.1208, allocations: 0 / 368 MB, free: 3.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.00503/0.1258, allocations: 2.338 MB / 370.4 MB, free: 1.324 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.1258, allocations: 59.84 kB / 370.4 MB, free: 1.254 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002858/0.1261, allocations: 266.6 kB / 370.7 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.474e-05/0.1262, allocations: 49.69 kB / 370.7 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.1263, allocations: 164.7 kB / 370.9 MB, free: 0.7656 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.1265, allocations: 181.5 kB / 371.1 MB, free: 0.5859 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.509e-05/0.1265, allocations: 11.98 kB / 371.1 MB, free: 0.5742 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.1267, allocations: 346.8 kB / 371.4 MB, free: 232 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004496/0.1271, allocations: 225 kB / 371.7 MB, free: 4 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2184/0.3455, allocations: 283.9 kB / 371.9 MB, free: 19.37 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004742/0.346, allocations: 181.9 kB / 372.1 MB, free: 19.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.346, allocations: 1.031 kB / 372.1 MB, free: 19.37 MB / 302.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001767/0.3478, allocations: 0.7222 MB / 372.8 MB, free: 19.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.3478, allocations: 4.531 kB / 372.8 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.3479, allocations: 4.938 kB / 372.8 MB, free: 19.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001139/0.349, allocations: 380.1 kB / 373.2 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002949/0.3493, allocations: 72.72 kB / 373.3 MB, free: 19.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002613/0.3519, allocations: 3.445 MB / 376.7 MB, free: 16.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005671/0.3525, allocations: 102.8 kB / 376.8 MB, free: 16.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.831e-05/0.3526, allocations: 18.64 kB / 376.8 MB, free: 16.24 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 (44): * Single equations (assignments): 41 * 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 21} Notification: Performance of prepare postOptimizeDAE: time 0.0002567/0.3528, allocations: 171.8 kB / 377 MB, free: 16.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.834e-05/0.3529, allocations: 38.89 kB / 377.1 MB, free: 16.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001671/0.3546, allocations: 0.7089 MB / 377.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.682e-06/0.3546, allocations: 5.5 kB / 377.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.3546, allocations: 0.7969 kB / 377.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.3547, allocations: 3.719 kB / 377.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002183/0.3568, allocations: 1.295 MB / 379.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.3569, allocations: 4 kB / 379.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002685/0.3571, allocations: 63.48 kB / 379.1 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009092/0.3581, allocations: 364.8 kB / 379.5 MB, free: 15.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.487e-05/0.3581, allocations: 15.64 kB / 379.5 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002089/0.3602, allocations: 3.408 MB / 382.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.053e-06/0.3602, allocations: 1.75 kB / 382.9 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001866/0.3621, allocations: 1.03 MB / 383.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001864/0.3623, allocations: 165.3 kB / 384.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.599e-05/0.3624, allocations: 14.5 kB / 384.1 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004653/0.3629, allocations: 99.81 kB / 384.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002492/0.3631, allocations: 114.2 kB / 384.3 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.877e-05/0.3632, allocations: 24.16 kB / 384.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002113/0.3634, allocations: 189.4 kB / 384.5 MB, free: 11 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3634, allocations: 0 / 384.5 MB, free: 11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005464/0.3639, allocations: 120.3 kB / 384.7 MB, free: 10.98 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 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.002837/0.3668, allocations: 1.84 MB / 386.5 MB, free: 9.852 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001755/0.3686, allocations: 0.7972 MB / 387.3 MB, free: 9.422 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.698e-06/0.3686, allocations: 0.9688 kB / 387.3 MB, free: 9.422 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009836/0.3696, allocations: 0.5367 MB / 387.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006362/0.3702, allocations: 69.64 kB / 387.9 MB, free: 9.066 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005492/0.3757, allocations: 2.888 MB / 390.8 MB, free: 7.477 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003341/0.3761, allocations: 0.8087 MB / 391.6 MB, free: 6.77 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001816/0.3763, allocations: 32.38 kB / 391.6 MB, free: 6.758 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001789/0.3765, allocations: 115.9 kB / 391.7 MB, free: 6.68 MB / 302.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3765, allocations: 0 / 391.7 MB, free: 6.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02831/0.4048, allocations: 12.03 MB / 403.8 MB, free: 208 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002437/0.4051, allocations: 268.9 kB / 404 MB, free: 15.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.162/2.567, allocations: 4.062 kB / 404 MB, free: 15.84 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat does not exist to compare? outputFormat=mat