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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001422/0.001422, allocations: 199.2 kB / 8.541 MB, free: 1.812 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.171/1.171, allocations: 225.5 MB / 234.4 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000957/0.0009569, allocations: 91.11 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09566/0.09665, allocations: 56.9 MB / 343.2 MB, free: 8.602 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08279/0.1795, allocations: 51.48 MB / 394.7 MB, free: 5.07 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2061/0.3856, allocations: 82.45 MB / 477.2 MB, free: 10.26 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001615/0.3858, allocations: 72.17 kB / 477.2 MB, free: 10.23 MB / 346.7 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.02251/0.4083, allocations: 9.564 MB / 486.8 MB, free: 2.566 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.138e-05/0.4084, allocations: 8 kB / 486.8 MB, free: 2.559 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.541e-05/0.4084, allocations: 47.44 kB / 486.8 MB, free: 2.512 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003292/0.4088, allocations: 303.9 kB / 487.1 MB, free: 2.199 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.4088, allocations: 19.81 kB / 487.2 MB, free: 2.184 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.224e-05/0.4089, allocations: 31.89 kB / 487.2 MB, free: 2.152 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005805/0.4095, allocations: 364.1 kB / 487.6 MB, free: 1.922 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005309/0.41, allocations: 345.7 kB / 487.9 MB, free: 1.672 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.41, allocations: 3.812 kB / 487.9 MB, free: 1.672 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.989e-05/0.4101, allocations: 0 / 487.9 MB, free: 1.672 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.4101, allocations: 15.91 kB / 487.9 MB, free: 1.656 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002174/0.4123, allocations: 1.267 MB / 489.2 MB, free: 0.6094 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004441/0.4127, allocations: 251.2 kB / 489.4 MB, free: 452 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002821/0.413, allocations: 201.5 kB / 489.6 MB, free: 332 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.67e-05/0.4131, allocations: 5.188 kB / 489.6 MB, free: 328 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.611e-05/0.4131, allocations: 50.48 kB / 489.7 MB, free: 272 kB / 346.7 MB Notification: Performance of pre-optimization done (n=50): time 1.593e-06/0.4131, allocations: 0 / 489.7 MB, free: 272 kB / 346.7 MB Notification: Performance of matching and sorting (n=54): time 0.003029/0.4161, allocations: 1.468 MB / 491.1 MB, free: 14.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.722e-05/0.4162, allocations: 55.84 kB / 491.2 MB, free: 14.92 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002237/0.4164, allocations: 227.8 kB / 491.4 MB, free: 14.73 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.079e-05/0.4165, allocations: 33.2 kB / 491.4 MB, free: 14.69 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.257e-05/0.4166, allocations: 155 kB / 491.6 MB, free: 14.54 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001402/0.4167, allocations: 170.7 kB / 491.8 MB, free: 14.4 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.112e-05/0.4168, allocations: 0 / 491.8 MB, free: 14.4 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001161/0.4169, allocations: 344.9 kB / 492.1 MB, free: 14.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003137/0.4172, allocations: 180.4 kB / 492.3 MB, free: 13.97 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000348/0.4176, allocations: 241.1 kB / 492.5 MB, free: 13.8 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000255/0.4178, allocations: 152.2 kB / 492.7 MB, free: 13.71 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.4178, allocations: 0 / 492.7 MB, free: 13.71 MB / 362.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001222/0.4191, allocations: 0.6103 MB / 493.3 MB, free: 13.25 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.269e-05/0.4191, allocations: 16 kB / 493.3 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.4191, allocations: 0 / 493.3 MB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009485/0.4201, allocations: 367.4 kB / 493.6 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003128/0.4204, allocations: 78.73 kB / 493.7 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002804/0.4232, allocations: 3.384 MB / 497.1 MB, free: 9.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000594/0.4238, allocations: 104.9 kB / 497.2 MB, free: 9.418 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.188e-05/0.4239, allocations: 22.47 kB / 497.2 MB, free: 9.402 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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 (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.0001843/0.4241, allocations: 124.8 kB / 497.4 MB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.844e-05/0.4242, allocations: 35.53 kB / 497.4 MB, free: 9.238 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001163/0.4253, allocations: 0.601 MB / 498 MB, free: 8.805 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.4254, allocations: 11.91 kB / 498 MB, free: 8.793 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.4254, allocations: 0 / 498 MB, free: 8.793 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.4254, allocations: 0 / 498 MB, free: 8.793 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001899/0.4273, allocations: 1.135 MB / 499.1 MB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.4273, allocations: 0 / 499.1 MB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003258/0.4276, allocations: 67.83 kB / 499.2 MB, free: 7.832 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008895/0.4285, allocations: 343.3 kB / 499.5 MB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.075e-05/0.4286, allocations: 15.47 kB / 499.6 MB, free: 7.562 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002721/0.4313, allocations: 3.368 MB / 0.4911 GB, free: 4.172 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.4313, allocations: 0 / 0.4911 GB, free: 4.172 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001545/0.4329, allocations: 0.9004 MB / 0.492 GB, free: 3.523 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002782/0.4357, allocations: 2.023 MB / 0.494 GB, free: 2.094 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002273/0.4359, allocations: 172.3 kB / 0.4942 GB, free: 1.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.263e-05/0.436, allocations: 11.5 kB / 0.4942 GB, free: 1.922 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005632/0.4366, allocations: 99.91 kB / 0.4943 GB, free: 1.824 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000232/0.4368, allocations: 106.8 kB / 0.4944 GB, free: 1.734 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.107e-05/0.4369, allocations: 16.7 kB / 0.4944 GB, free: 1.723 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001688/0.4371, allocations: 183.5 kB / 0.4946 GB, free: 1.574 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001168/0.4383, allocations: 104 kB / 0.4947 GB, free: 1.473 MB / 362.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 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,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 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006273/0.4389, allocations: 287.4 kB / 0.4949 GB, free: 1.301 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001228/0.4401, allocations: 0.6792 MB / 0.4956 GB, free: 0.7695 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.4401, allocations: 0 / 0.4956 GB, free: 0.7695 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007316/0.4409, allocations: 478.6 kB / 0.496 GB, free: 380 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004284/0.4413, allocations: 60.17 kB / 0.4961 GB, free: 336 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001933/0.4433, allocations: 0.808 MB / 0.4969 GB, free: 15.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005047/0.4438, allocations: 0.8663 MB / 0.4977 GB, free: 14.7 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4438, allocations: 0 / 0.4977 GB, free: 14.7 MB / 378.7 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