Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001058/0.001058, allocations: 187.7 kB / 8.479 MB, free: 1.863 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.196/1.196, allocations: 205.2 MB / 214.1 MB, free: 5.098 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008547/0.0008547, allocations: 90.34 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1698/0.1707, allocations: 52.96 MB / 315.1 MB, free: 41.42 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06787/0.2386, allocations: 47.58 MB / 362.6 MB, free: 9.875 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2398/0.4784, allocations: 80.05 MB / 442.7 MB, free: 10.65 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001887/0.4786, allocations: 73.28 kB / 442.8 MB, free: 10.65 MB / 314.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.02809/0.5067, allocations: 10.38 MB / 453.1 MB, free: 7.637 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.5068, allocations: 11.41 kB / 453.2 MB, free: 7.637 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003804/0.5072, allocations: 54 kB / 453.2 MB, free: 7.609 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004351/0.5076, allocations: 287.4 kB / 453.5 MB, free: 7.359 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.5077, allocations: 80.02 kB / 453.6 MB, free: 7.293 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.274e-05/0.5078, allocations: 22.56 kB / 453.6 MB, free: 7.289 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005943/0.5084, allocations: 400 kB / 454 MB, free: 7.234 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005146/0.5089, allocations: 336.5 kB / 454.3 MB, free: 7.113 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.24e-05/0.509, allocations: 7.953 kB / 454.3 MB, free: 7.109 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.968e-05/0.509, allocations: 0 / 454.3 MB, free: 7.109 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.146e-06/0.509, allocations: 11.62 kB / 454.3 MB, free: 7.105 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001334/0.5104, allocations: 0.8324 MB / 455.2 MB, free: 6.633 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003996/0.5108, allocations: 289.2 kB / 455.4 MB, free: 6.594 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002565/0.5111, allocations: 184.4 kB / 455.6 MB, free: 6.582 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.444e-05/0.5111, allocations: 4.281 kB / 455.6 MB, free: 6.582 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.939e-05/0.5111, allocations: 38.69 kB / 455.7 MB, free: 6.539 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 1.784e-06/0.5111, allocations: 3.656 kB / 455.7 MB, free: 6.539 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.002687/0.5138, allocations: 1.418 MB / 457.1 MB, free: 5.871 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.651e-05/0.5139, allocations: 85.39 kB / 457.2 MB, free: 5.773 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001727/0.5141, allocations: 195 kB / 457.4 MB, free: 5.656 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.983e-05/0.5141, allocations: 25.7 kB / 457.4 MB, free: 5.625 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.858e-05/0.5142, allocations: 123.9 kB / 457.5 MB, free: 5.516 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.5143, allocations: 178.6 kB / 457.7 MB, free: 5.383 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.643e-05/0.5143, allocations: 0 / 457.7 MB, free: 5.383 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.519e-05/0.5144, allocations: 340.5 kB / 458 MB, free: 5.059 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002636/0.5146, allocations: 152.3 kB / 458.2 MB, free: 5.055 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002818/0.5149, allocations: 204.2 kB / 458.4 MB, free: 5.012 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003945/0.5153, allocations: 156.8 kB / 458.5 MB, free: 4.988 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.5153, allocations: 0 / 458.5 MB, free: 4.988 MB / 314.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009398/0.5163, allocations: 0.5153 MB / 459 MB, free: 4.883 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.5163, allocations: 9 kB / 459 MB, free: 4.879 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.436e-06/0.5163, allocations: 0 / 459 MB, free: 4.879 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007397/0.5171, allocations: 246.2 kB / 459.3 MB, free: 4.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003663/0.5175, allocations: 72.72 kB / 459.4 MB, free: 4.801 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003088/0.5206, allocations: 2.442 MB / 461.8 MB, free: 3.297 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000395/0.521, allocations: 32.78 kB / 461.8 MB, free: 3.285 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.947e-05/0.5211, allocations: 20.75 kB / 461.8 MB, free: 3.281 MB / 314.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.0001835/0.5213, allocations: 113.6 kB / 462 MB, free: 3.168 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.666e-05/0.5214, allocations: 30.56 kB / 462 MB, free: 3.152 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.396e-05/0.5214, allocations: 42.38 kB / 462 MB, free: 3.141 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.5215, allocations: 6.062 kB / 462 MB, free: 3.141 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.5215, allocations: 0 / 462 MB, free: 3.141 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.5215, allocations: 5.328 kB / 462 MB, free: 3.137 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001966/0.5235, allocations: 1.095 MB / 463.1 MB, free: 2.672 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.939e-06/0.5235, allocations: 1.125 kB / 463.1 MB, free: 2.672 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004054/0.5239, allocations: 67.86 kB / 463.2 MB, free: 2.656 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006879/0.5246, allocations: 227.2 kB / 463.4 MB, free: 2.605 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.413e-05/0.5246, allocations: 6.859 kB / 463.4 MB, free: 2.602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003161/0.5278, allocations: 2.352 MB / 465.8 MB, free: 1.105 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/0.5278, allocations: 5.406 kB / 465.8 MB, free: 1.102 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001374/0.5292, allocations: 0.8243 MB / 466.6 MB, free: 16.86 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001726/0.531, allocations: 1.43 MB / 468 MB, free: 16.23 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001975/0.5312, allocations: 159.2 kB / 468.2 MB, free: 16.1 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.741e-05/0.5313, allocations: 5.75 kB / 468.2 MB, free: 16.1 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003714/0.5316, allocations: 32.12 kB / 468.2 MB, free: 16.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.5318, allocations: 48.31 kB / 468.3 MB, free: 16.06 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.703e-05/0.5318, allocations: 25.48 kB / 468.3 MB, free: 16.05 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001416/0.532, allocations: 144.5 kB / 468.5 MB, free: 15.97 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0014/0.5334, allocations: 135.3 kB / 468.6 MB, free: 15.96 MB / 330.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.0002824/0.5337, allocations: 139.2 kB / 468.7 MB, free: 15.85 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009676/0.5346, allocations: 0.5328 MB / 469.3 MB, free: 15.71 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.5347, allocations: 0 / 469.3 MB, free: 15.71 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005993/0.5353, allocations: 371.7 kB / 469.6 MB, free: 15.57 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003534/0.5356, allocations: 19.64 kB / 469.6 MB, free: 15.57 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001498/0.5371, allocations: 0.6053 MB / 470.2 MB, free: 15.26 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005937/0.5378, allocations: 0.837 MB / 471.1 MB, free: 14.5 MB / 330.7 MB Notification: Performance of SimCode: time 5.01e-07/0.5378, allocations: 0 / 471.1 MB, free: 14.5 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1_fmu --startTime=0 --stopTime=0.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1)