Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.001103/0.001103, allocations: 197.8 kB / 8.539 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.342/1.342, allocations: 225.5 MB / 234.4 MB, free: 3.523 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008659/0.0008659, allocations: 94.47 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.103/0.1039, allocations: 56.9 MB / 343.2 MB, free: 8.738 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09893/0.2028, allocations: 51.47 MB / 394.7 MB, free: 5.219 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2406/0.4435, allocations: 82.32 MB / 477 MB, free: 10.64 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001613/0.4437, allocations: 73.55 kB / 477.1 MB, free: 10.61 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.04246/0.4861, allocations: 17.25 MB / 494.3 MB, free: 12.84 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.4862, allocations: 8 kB / 494.4 MB, free: 12.83 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003306/0.4865, allocations: 51.59 kB / 494.4 MB, free: 12.78 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004237/0.487, allocations: 293.6 kB / 494.7 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001301/0.4871, allocations: 80.73 kB / 494.8 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.69e-05/0.4872, allocations: 19.98 kB / 494.8 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006064/0.4878, allocations: 378.9 kB / 495.2 MB, free: 12.11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005114/0.4883, allocations: 330 kB / 495.5 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.4884, allocations: 0 / 495.5 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.653e-05/0.4884, allocations: 0 / 495.5 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.083e-05/0.4884, allocations: 11.94 kB / 495.5 MB, free: 11.83 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00185/0.4903, allocations: 1.173 MB / 496.7 MB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004199/0.4907, allocations: 278.5 kB / 496.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002334/0.491, allocations: 151.4 kB / 497.1 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.109e-05/0.491, allocations: 14.56 kB / 497.1 MB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.491, allocations: 42.17 kB / 497.1 MB, free: 10.51 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 1.633e-06/0.491, allocations: 0 / 497.1 MB, free: 10.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=45): time 0.00238/0.4934, allocations: 1.231 MB / 498.4 MB, free: 9.418 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.996e-05/0.4935, allocations: 91.55 kB / 498.5 MB, free: 9.312 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002368/0.4937, allocations: 204 kB / 498.7 MB, free: 9.141 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.087e-05/0.4938, allocations: 28.7 kB / 498.7 MB, free: 9.109 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.672e-05/0.4939, allocations: 124 kB / 498.8 MB, free: 8.988 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001111/0.494, allocations: 144.5 kB / 498.9 MB, free: 8.863 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.372e-05/0.494, allocations: 4 kB / 499 MB, free: 8.859 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.59e-05/0.4941, allocations: 337.9 kB / 499.3 MB, free: 8.531 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002263/0.4944, allocations: 140.4 kB / 499.4 MB, free: 8.449 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002776/0.4946, allocations: 203.2 kB / 499.6 MB, free: 8.289 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003582/0.495, allocations: 136.7 kB / 499.8 MB, free: 8.203 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.495, allocations: 4.031 kB / 499.8 MB, free: 8.199 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009661/0.496, allocations: 493.2 kB / 0.4885 GB, free: 7.836 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.496, allocations: 4 kB / 0.4885 GB, free: 7.832 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.496, allocations: 4 kB / 0.4885 GB, free: 7.828 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007983/0.4968, allocations: 247.5 kB / 0.4888 GB, free: 7.637 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002841/0.4971, allocations: 66.08 kB / 0.4888 GB, free: 7.574 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00317/0.5003, allocations: 2.409 MB / 0.4912 GB, free: 5.508 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002999/0.5006, allocations: 31.38 kB / 0.4912 GB, free: 5.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.855e-05/0.5007, allocations: 15.98 kB / 0.4912 GB, free: 5.465 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.00016/0.5009, allocations: 123.3 kB / 0.4913 GB, free: 5.344 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.644e-05/0.501, allocations: 23.72 kB / 0.4914 GB, free: 5.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.835e-05/0.501, allocations: 45.36 kB / 0.4914 GB, free: 5.301 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.501, allocations: 4 kB / 0.4914 GB, free: 5.297 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.501, allocations: 0 / 0.4914 GB, free: 5.297 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.5011, allocations: 0 / 0.4914 GB, free: 5.297 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001599/0.5027, allocations: 1.011 MB / 0.4924 GB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.5027, allocations: 0 / 0.4924 GB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002719/0.503, allocations: 54.52 kB / 0.4924 GB, free: 4.445 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007051/0.5037, allocations: 242.5 kB / 0.4927 GB, free: 4.258 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.042e-05/0.5037, allocations: 11.98 kB / 0.4927 GB, free: 4.246 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002998/0.5067, allocations: 2.359 MB / 0.495 GB, free: 2.156 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.5067, allocations: 4 kB / 0.495 GB, free: 2.152 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00113/0.5079, allocations: 0.7318 MB / 0.4957 GB, free: 1.402 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00154/0.5094, allocations: 1.303 MB / 0.497 GB, free: 76 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002037/0.5096, allocations: 160.9 kB / 0.4971 GB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.049e-05/0.5097, allocations: 0 / 0.4971 GB, free: 15.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003136/0.51, allocations: 23.97 kB / 0.4972 GB, free: 15.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/0.5102, allocations: 51.81 kB / 0.4972 GB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.321e-05/0.5103, allocations: 23.92 kB / 0.4972 GB, free: 15.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001597/0.5104, allocations: 171.1 kB / 0.4974 GB, free: 15.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001221/0.5116, allocations: 123.9 kB / 0.4975 GB, free: 15.52 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006617/0.5123, allocations: 289.9 kB / 0.4978 GB, free: 15.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009189/0.5132, allocations: 0.4941 MB / 0.4983 GB, free: 14.82 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.5133, allocations: 5.562 kB / 0.4983 GB, free: 14.82 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005137/0.5138, allocations: 336.7 kB / 0.4986 GB, free: 14.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003021/0.5141, allocations: 26.67 kB / 0.4986 GB, free: 14.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001273/0.5154, allocations: 0.553 MB / 0.4992 GB, free: 13.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004932/0.5159, allocations: 0.815 MB / 0.5 GB, free: 13.04 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5159, allocations: 0 / 0.5 GB, free: 13.04 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat does not exist to compare? outputFormat=mat