Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.LossyGearDemo2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",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.001066/0.001066, allocations: 199 kB / 8.538 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.205/1.205, allocations: 225.5 MB / 234.4 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008255/0.0008255, allocations: 93.67 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1056/0.1064, allocations: 56.9 MB / 343.2 MB, free: 8.551 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09132/0.1978, allocations: 51.47 MB / 394.7 MB, free: 5.031 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2508/0.4486, allocations: 84.74 MB / 479.4 MB, free: 8.367 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001409/0.4488, allocations: 72.72 kB / 479.5 MB, free: 8.328 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: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.0529/0.5017, allocations: 20.77 MB / 0.4886 GB, free: 7.055 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.5018, allocations: 12 kB / 0.4886 GB, free: 7.043 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005198/0.5023, allocations: 83.31 kB / 0.4887 GB, free: 6.961 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005537/0.5029, allocations: 352.5 kB / 0.489 GB, free: 6.625 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001236/0.503, allocations: 87.7 kB / 0.4891 GB, free: 6.531 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.269e-05/0.5031, allocations: 27.89 kB / 0.4891 GB, free: 6.504 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009433/0.5041, allocations: 0.5387 MB / 0.4896 GB, free: 6.129 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007899/0.5049, allocations: 484.7 kB / 0.4901 GB, free: 5.766 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/0.5049, allocations: 0 / 0.4901 GB, free: 5.766 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.227e-05/0.5049, allocations: 3.906 kB / 0.4901 GB, free: 5.762 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.505, allocations: 16 kB / 0.4901 GB, free: 5.746 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002263/0.5072, allocations: 1.194 MB / 0.4913 GB, free: 4.793 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005497/0.5078, allocations: 362.7 kB / 0.4916 GB, free: 4.555 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004347/0.5082, allocations: 256.4 kB / 0.4919 GB, free: 4.402 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.463e-05/0.5083, allocations: 13.86 kB / 0.4919 GB, free: 4.391 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.923e-05/0.5083, allocations: 45.67 kB / 0.4919 GB, free: 4.344 MB / 362.7 MB Notification: Performance of pre-optimization done (n=62): time 1.874e-06/0.5083, allocations: 0 / 0.4919 GB, free: 4.344 MB / 362.7 MB Notification: Performance of matching and sorting (n=70): time 0.003414/0.5118, allocations: 1.763 MB / 0.4936 GB, free: 2.871 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.331e-05/0.5118, allocations: 85.77 kB / 0.4937 GB, free: 2.77 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003294/0.5122, allocations: 274.9 kB / 0.494 GB, free: 2.547 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.319e-05/0.5122, allocations: 36.03 kB / 0.494 GB, free: 2.508 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.785e-05/0.5123, allocations: 151.1 kB / 0.4942 GB, free: 2.367 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001757/0.5125, allocations: 225.5 kB / 0.4944 GB, free: 2.172 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.862e-05/0.5126, allocations: 0 / 0.4944 GB, free: 2.172 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001277/0.5127, allocations: 346 kB / 0.4947 GB, free: 1.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003676/0.5131, allocations: 231.2 kB / 0.4949 GB, free: 1.707 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004132/0.5135, allocations: 281.1 kB / 0.4952 GB, free: 1.523 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004015/0.5139, allocations: 206.8 kB / 0.4954 GB, free: 1.391 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.5139, allocations: 0 / 0.4954 GB, free: 1.391 MB / 362.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001494/0.5154, allocations: 0.7177 MB / 0.4961 GB, free: 0.875 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.41e-05/0.5154, allocations: 4 kB / 0.4961 GB, free: 0.8711 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.5154, allocations: 4 kB / 0.4961 GB, free: 0.8672 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00102/0.5165, allocations: 377.1 kB / 0.4965 GB, free: 0.5898 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000452/0.5169, allocations: 94.98 kB / 0.4966 GB, free: 0.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001274/0.5182, allocations: 1.068 MB / 0.4976 GB, free: 15.51 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00054/0.5188, allocations: 76 kB / 0.4977 GB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.341e-05/0.5189, allocations: 23.98 kB / 0.4977 GB, free: 15.41 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" 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: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 33} Notification: Performance of prepare postOptimizeDAE: time 0.0001947/0.5191, allocations: 125.8 kB / 0.4978 GB, free: 15.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.5192, allocations: 39.59 kB / 0.4979 GB, free: 15.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001087/0.5193, allocations: 63.64 kB / 0.4979 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.594e-06/0.5193, allocations: 8 kB / 0.4979 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.5193, allocations: 0 / 0.4979 GB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.5193, allocations: 4 kB / 0.4979 GB, free: 15.17 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002791/0.5221, allocations: 1.538 MB / 0.4994 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.327e-06/0.5221, allocations: 0 / 0.4994 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004361/0.5226, allocations: 93.88 kB / 0.4995 GB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00091/0.5235, allocations: 351.5 kB / 0.4999 GB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.061e-05/0.5236, allocations: 11.97 kB / 0.4999 GB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001234/0.5248, allocations: 1.017 MB / 0.5009 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.094e-06/0.5248, allocations: 0 / 0.5009 GB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001779/0.5266, allocations: 1.076 MB / 0.5019 GB, free: 10.98 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002422/0.5291, allocations: 1.785 MB / 0.5037 GB, free: 9.176 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002733/0.5293, allocations: 204.4 kB / 0.5038 GB, free: 8.957 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001134/0.5295, allocations: 8 kB / 0.5039 GB, free: 8.949 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005261/0.53, allocations: 68.06 kB / 0.5039 GB, free: 8.883 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002194/0.5302, allocations: 104.4 kB / 0.504 GB, free: 8.781 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.686e-05/0.5303, allocations: 23.98 kB / 0.504 GB, free: 8.758 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002324/0.5305, allocations: 213.2 kB / 0.5042 GB, free: 8.551 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001293/0.5318, allocations: 139.9 kB / 0.5044 GB, free: 8.414 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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 30} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006607/0.5325, allocations: 310.2 kB / 0.5047 GB, free: 8.199 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00107/0.5336, allocations: 0.5798 MB / 0.5052 GB, free: 7.621 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.5336, allocations: 0 / 0.5052 GB, free: 7.621 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006136/0.5342, allocations: 334.4 kB / 0.5056 GB, free: 7.293 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003743/0.5346, allocations: 28.48 kB / 0.5056 GB, free: 7.266 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001717/0.5363, allocations: 0.7716 MB / 0.5063 GB, free: 6.469 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005775/0.5369, allocations: 0.891 MB / 0.5072 GB, free: 5.555 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.5369, allocations: 4 kB / 0.5072 GB, free: 5.551 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.mat does not exist to compare? outputFormat=mat