Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.LossyGearDemo1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",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.001119/0.001119, allocations: 207 kB / 8.542 MB, free: 1.801 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.198/1.198, allocations: 225.5 MB / 234.4 MB, free: 3.383 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009735/0.0009736, allocations: 95.84 kB / 286.3 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1062/0.1072, allocations: 56.9 MB / 343.2 MB, free: 8.633 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09134/0.1986, allocations: 51.48 MB / 394.7 MB, free: 5.117 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2494/0.448, allocations: 83.03 MB / 477.7 MB, free: 9.918 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001827/0.4482, allocations: 70.31 kB / 477.8 MB, free: 9.895 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.04508/0.4933, allocations: 18.12 MB / 495.9 MB, free: 11.1 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.4933, allocations: 8 kB / 495.9 MB, free: 11.09 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004704/0.4938, allocations: 71.58 kB / 496 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005003/0.4943, allocations: 304.7 kB / 496.3 MB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001249/0.4945, allocations: 79.67 kB / 496.4 MB, free: 10.63 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.748e-05/0.4946, allocations: 27.91 kB / 496.4 MB, free: 10.6 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007219/0.4953, allocations: 415.5 kB / 496.8 MB, free: 10.31 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005821/0.4959, allocations: 355.9 kB / 497.2 MB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.4959, allocations: 2.812 kB / 497.2 MB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.673e-05/0.496, allocations: 4 kB / 497.2 MB, free: 10.03 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.496, allocations: 4 kB / 497.2 MB, free: 10.03 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001416/0.4974, allocations: 0.879 MB / 498 MB, free: 9.297 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004637/0.4979, allocations: 299.8 kB / 498.3 MB, free: 9.102 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002909/0.4982, allocations: 193.3 kB / 498.5 MB, free: 8.984 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.539e-05/0.4982, allocations: 8.344 kB / 498.5 MB, free: 8.977 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.151e-05/0.4983, allocations: 42.75 kB / 498.6 MB, free: 8.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 1.663e-06/0.4983, allocations: 0 / 498.6 MB, free: 8.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=55): time 0.002714/0.501, allocations: 1.431 MB / 0.4883 GB, free: 7.695 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/0.501, allocations: 85.55 kB / 0.4884 GB, free: 7.594 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002433/0.5013, allocations: 210.7 kB / 0.4886 GB, free: 7.414 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.562e-05/0.5013, allocations: 30.64 kB / 0.4886 GB, free: 7.379 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.173e-05/0.5014, allocations: 128.9 kB / 0.4887 GB, free: 7.258 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.5016, allocations: 171.9 kB / 0.4889 GB, free: 7.109 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.687e-05/0.5016, allocations: 0 / 0.4889 GB, free: 7.109 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.5017, allocations: 344.4 kB / 0.4892 GB, free: 6.777 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003117/0.502, allocations: 170.3 kB / 0.4894 GB, free: 6.676 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002948/0.5023, allocations: 199.9 kB / 0.4896 GB, free: 6.543 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000313/0.5027, allocations: 155 kB / 0.4897 GB, free: 6.441 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.5027, allocations: 0 / 0.4897 GB, free: 6.441 MB / 362.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001012/0.5037, allocations: 0.5263 MB / 0.4902 GB, free: 6.059 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.5037, allocations: 8 kB / 0.4902 GB, free: 6.051 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.112e-06/0.5037, allocations: 0 / 0.4902 GB, free: 6.051 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007897/0.5045, allocations: 258.3 kB / 0.4905 GB, free: 5.852 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003679/0.5049, allocations: 75.39 kB / 0.4906 GB, free: 5.781 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003208/0.5081, allocations: 2.443 MB / 0.4929 GB, free: 3.691 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003465/0.5085, allocations: 36.03 kB / 0.493 GB, free: 3.656 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.521e-05/0.5086, allocations: 14.81 kB / 0.493 GB, free: 3.645 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: 2 * 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 (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0001677/0.5087, allocations: 117.6 kB / 0.4931 GB, free: 3.527 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.677e-05/0.5088, allocations: 31.62 kB / 0.4931 GB, free: 3.496 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.511e-05/0.5089, allocations: 44.88 kB / 0.4932 GB, free: 3.477 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.5089, allocations: 4 kB / 0.4932 GB, free: 3.473 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.369e-06/0.5089, allocations: 3.984 kB / 0.4932 GB, free: 3.469 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.5089, allocations: 7.984 kB / 0.4932 GB, free: 3.461 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001964/0.5109, allocations: 1.152 MB / 0.4943 GB, free: 2.555 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.5109, allocations: 0 / 0.4943 GB, free: 2.555 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003862/0.5113, allocations: 78.02 kB / 0.4944 GB, free: 2.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007231/0.5121, allocations: 244.7 kB / 0.4946 GB, free: 2.293 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.319e-05/0.5121, allocations: 14.72 kB / 0.4946 GB, free: 2.281 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003091/0.5152, allocations: 2.363 MB / 0.497 GB, free: 4 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.5152, allocations: 3.938 kB / 0.497 GB, free: 0 / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001378/0.5166, allocations: 0.845 MB / 0.4978 GB, free: 15.13 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001805/0.5184, allocations: 1.46 MB / 0.4992 GB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002126/0.5187, allocations: 168.6 kB / 0.4994 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.819e-05/0.5188, allocations: 7.938 kB / 0.4994 GB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003642/0.5191, allocations: 32.03 kB / 0.4994 GB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.5193, allocations: 52.33 kB / 0.4995 GB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.746e-05/0.5193, allocations: 19.98 kB / 0.4995 GB, free: 13.34 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001546/0.5195, allocations: 169.5 kB / 0.4996 GB, free: 13.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001238/0.5207, allocations: 147.8 kB / 0.4998 GB, free: 13.03 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: 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 (31): * Single equations (assignments): 30 * 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.0006444/0.5214, allocations: 290.4 kB / 0.5001 GB, free: 12.83 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009603/0.5224, allocations: 0.5479 MB / 0.5006 GB, free: 12.28 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.5224, allocations: 0 / 0.5006 GB, free: 12.28 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005927/0.523, allocations: 374.6 kB / 0.5009 GB, free: 11.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003083/0.5233, allocations: 20.64 kB / 0.501 GB, free: 11.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00144/0.5247, allocations: 0.631 MB / 0.5016 GB, free: 11.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005599/0.5253, allocations: 0.8466 MB / 0.5024 GB, free: 10.35 MB / 378.7 MB Notification: Performance of SimCode: time 3.4e-07/0.5253, allocations: 0.8438 kB / 0.5024 GB, free: 10.35 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat does not exist to compare? outputFormat=mat