Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches",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 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 182.4 kB / 8.134 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.057/1.057, allocations: 221.4 MB / 229.9 MB, free: 3.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000845/0.000845, allocations: 101.8 kB / 280.8 MB, free: 1.258 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08705/0.08792, allocations: 55.82 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.2608, allocations: 50.39 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.074/0.3348, allocations: 78.94 MB / 465.9 MB, free: 7.836 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001731/0.335, allocations: 72.62 kB / 466 MB, free: 7.766 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.02587/0.3609, allocations: 9.904 MB / 475.9 MB, free: 13.84 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.3609, allocations: 8 kB / 475.9 MB, free: 13.83 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001314/0.3611, allocations: 61.91 kB / 476 MB, free: 13.77 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004273/0.3615, allocations: 342.7 kB / 476.3 MB, free: 13.4 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.314e-05/0.3616, allocations: 16 kB / 476.3 MB, free: 13.38 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.737e-05/0.3616, allocations: 27.91 kB / 476.4 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008004/0.3625, allocations: 477.8 kB / 476.8 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007753/0.3632, allocations: 0.5038 MB / 477.3 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.35e-05/0.3633, allocations: 15.84 kB / 477.3 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.852e-05/0.3633, allocations: 0 / 477.3 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.479e-05/0.3633, allocations: 8 kB / 477.4 MB, free: 12.35 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002361/0.3657, allocations: 1.276 MB / 478.6 MB, free: 11.03 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006473/0.3664, allocations: 347 kB / 479 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000357/0.3667, allocations: 254.3 kB / 479.2 MB, free: 10.44 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.714e-05/0.3668, allocations: 12.48 kB / 479.2 MB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.256e-05/0.3668, allocations: 43.94 kB / 479.3 MB, free: 10.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=61): time 2.996e-06/0.3669, allocations: 3.984 kB / 479.3 MB, free: 10.37 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.003867/0.3707, allocations: 1.838 MB / 481.1 MB, free: 8.438 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.655e-05/0.3708, allocations: 60.06 kB / 481.2 MB, free: 8.367 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002075/0.371, allocations: 240.3 kB / 481.4 MB, free: 8.133 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.813e-05/0.3711, allocations: 37.7 kB / 481.4 MB, free: 8.09 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.131e-05/0.3711, allocations: 157.4 kB / 481.6 MB, free: 7.93 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001562/0.3713, allocations: 216.8 kB / 481.8 MB, free: 7.715 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.309e-05/0.3713, allocations: 4 kB / 481.8 MB, free: 7.711 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.3715, allocations: 358.8 kB / 482.2 MB, free: 7.352 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003882/0.3719, allocations: 245.5 kB / 482.4 MB, free: 7.113 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004111/0.3723, allocations: 309.4 kB / 482.7 MB, free: 6.801 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004947/0.3728, allocations: 199 kB / 482.9 MB, free: 6.605 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.3728, allocations: 5.969 kB / 482.9 MB, free: 6.602 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.00139/0.3742, allocations: 0.7469 MB / 483.7 MB, free: 5.844 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.3742, allocations: 4.031 kB / 483.7 MB, free: 5.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/0.3742, allocations: 11.98 kB / 483.7 MB, free: 5.828 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009507/0.3752, allocations: 0.5336 MB / 484.2 MB, free: 5.289 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003803/0.3756, allocations: 99.88 kB / 484.3 MB, free: 5.191 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001392/0.377, allocations: 1.084 MB / 485.4 MB, free: 4.082 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007035/0.3777, allocations: 151.9 kB / 485.5 MB, free: 3.934 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.953e-05/0.3778, allocations: 31.98 kB / 485.6 MB, free: 3.902 MB / 362.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch3.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real clutch1.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: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch1.free,$PRE.clutch1.startForward,clutch1.startForward,$PRE.clutch1.startBackward,clutch1.startBackward,clutch1.locked,$PRE.clutch1.mode,clutch1.mode,clutch2.free,$PRE.clutch2.startForward,clutch2.startForward,$PRE.clutch2.startBackward,clutch2.startBackward,clutch2.locked,$PRE.clutch2.mode,clutch2.mode,clutch3.free,$PRE.clutch3.startForward,clutch3.startForward,$PRE.clutch3.startBackward,clutch3.startBackward,clutch3.locked,$PRE.clutch3.mode,clutch3.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {3 19} Notification: Performance of prepare postOptimizeDAE: time 0.0001796/0.378, allocations: 129.1 kB / 485.7 MB, free: 3.777 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.63e-05/0.3781, allocations: 51.44 kB / 485.7 MB, free: 3.727 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001602/0.3797, allocations: 0.8363 MB / 486.6 MB, free: 2.867 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.3797, allocations: 4 kB / 486.6 MB, free: 2.863 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.3797, allocations: 0 / 486.6 MB, free: 2.863 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.3797, allocations: 4.094 kB / 486.6 MB, free: 2.859 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00218/0.3819, allocations: 1.33 MB / 487.9 MB, free: 1.488 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.3819, allocations: 3.984 kB / 487.9 MB, free: 1.484 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004903/0.3824, allocations: 99.81 kB / 488 MB, free: 1.387 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008907/0.3833, allocations: 0.5092 MB / 488.5 MB, free: 0.875 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.376e-05/0.3834, allocations: 23.95 kB / 488.5 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001356/0.3847, allocations: 1.049 MB / 489.6 MB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3848, allocations: 0.75 kB / 489.6 MB, free: 15.78 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001849/0.3866, allocations: 1.084 MB / 490.7 MB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002364/0.389, allocations: 1.776 MB / 492.5 MB, free: 12.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002394/0.3892, allocations: 188.4 kB / 492.6 MB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001234/0.3894, allocations: 8 kB / 492.6 MB, free: 12.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000698/0.3901, allocations: 155.8 kB / 492.8 MB, free: 12.51 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002618/0.3903, allocations: 148.3 kB / 492.9 MB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.834e-05/0.3904, allocations: 31.95 kB / 493 MB, free: 12.33 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001658/0.3906, allocations: 192.1 kB / 493.2 MB, free: 12.15 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00111/0.3917, allocations: 136 kB / 493.3 MB, free: 12.02 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch2.mode,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * 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 {3 19} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002756/0.392, allocations: 155 kB / 493.4 MB, free: 11.86 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001124/0.3931, allocations: 0.7133 MB / 494.2 MB, free: 11.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3932, allocations: 0 / 494.2 MB, free: 11.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005781/0.3937, allocations: 364.8 kB / 494.5 MB, free: 10.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005271/0.3943, allocations: 69.05 kB / 494.6 MB, free: 10.7 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00224/0.3965, allocations: 1.156 MB / 495.7 MB, free: 9.527 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005143/0.3971, allocations: 0.9135 MB / 496.7 MB, free: 8.59 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3971, allocations: 0 / 496.7 MB, free: 8.59 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1)