Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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.CoupledClutches,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009887/0.0009888, allocations: 179.7 kB / 8.474 MB, free: 1.879 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.212/1.212, allocations: 205.2 MB / 214.1 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009598/0.0009598, allocations: 81.95 kB / 262.1 MB, free: 13.55 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.101/0.102, allocations: 52.98 MB / 315.1 MB, free: 8.516 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2097/0.3117, allocations: 47.56 MB / 362.6 MB, free: 45.79 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08773/0.3995, allocations: 78.03 MB / 440.7 MB, free: 7.852 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002266/0.3998, allocations: 73.08 kB / 440.7 MB, free: 7.781 MB / 330.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.02939/0.4292, allocations: 9.761 MB / 450.5 MB, free: 14.04 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.4292, allocations: 11.94 kB / 450.5 MB, free: 14.02 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002824/0.4295, allocations: 59.25 kB / 450.6 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006543/0.4302, allocations: 330.8 kB / 450.9 MB, free: 13.6 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.863e-05/0.4302, allocations: 12 kB / 450.9 MB, free: 13.59 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001201/0.4304, allocations: 35.89 kB / 450.9 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009517/0.4313, allocations: 485.8 kB / 451.4 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000939/0.4323, allocations: 0.4961 MB / 451.9 MB, free: 12.57 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.772e-05/0.4323, allocations: 11.83 kB / 451.9 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.621e-05/0.4324, allocations: 0 / 451.9 MB, free: 12.56 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.57e-05/0.4324, allocations: 12 kB / 451.9 MB, free: 12.55 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00286/0.4353, allocations: 1.286 MB / 453.2 MB, free: 11.21 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007147/0.436, allocations: 346.6 kB / 453.5 MB, free: 10.87 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004088/0.4364, allocations: 246.3 kB / 453.8 MB, free: 10.63 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.933e-05/0.4365, allocations: 16.5 kB / 453.8 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.312e-05/0.4366, allocations: 37.81 kB / 453.8 MB, free: 10.57 MB / 346.7 MB Notification: Performance of pre-optimization done (n=61): time 2.935e-06/0.4366, allocations: 0 / 453.8 MB, free: 10.57 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.004481/0.4411, allocations: 1.836 MB / 455.7 MB, free: 8.641 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.825e-05/0.4411, allocations: 64.05 kB / 455.7 MB, free: 8.566 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002752/0.4414, allocations: 231.5 kB / 456 MB, free: 8.328 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.506e-05/0.4415, allocations: 37.69 kB / 456 MB, free: 8.285 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.542e-05/0.4416, allocations: 165.4 kB / 456.2 MB, free: 8.117 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001979/0.4418, allocations: 224.9 kB / 456.4 MB, free: 7.895 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.335e-05/0.4419, allocations: 0 / 456.4 MB, free: 7.895 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.4421, allocations: 358.7 kB / 456.7 MB, free: 7.535 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000431/0.4425, allocations: 245.5 kB / 457 MB, free: 7.297 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004357/0.4429, allocations: 301.4 kB / 457.3 MB, free: 6.992 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005211/0.4435, allocations: 203.1 kB / 457.5 MB, free: 6.793 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.4435, allocations: 0 / 457.5 MB, free: 6.793 MB / 346.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001501/0.445, allocations: 0.7476 MB / 458.2 MB, free: 6.039 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.445, allocations: 7.938 kB / 458.2 MB, free: 6.031 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.264e-05/0.445, allocations: 8 kB / 458.2 MB, free: 6.023 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001033/0.4461, allocations: 0.5336 MB / 458.8 MB, free: 5.488 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004135/0.4465, allocations: 99.88 kB / 458.9 MB, free: 5.391 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001595/0.4481, allocations: 1.091 MB / 459.9 MB, free: 4.273 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008385/0.449, allocations: 155.9 kB / 460.1 MB, free: 4.121 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.953e-05/0.4491, allocations: 32.33 kB / 460.1 MB, free: 4.094 MB / 346.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.0002256/0.4493, allocations: 128.5 kB / 460.3 MB, free: 3.961 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/0.4494, allocations: 43.44 kB / 460.3 MB, free: 3.918 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001784/0.4512, allocations: 0.8389 MB / 461.1 MB, free: 3.062 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.325e-06/0.4512, allocations: 8 kB / 461.1 MB, free: 3.055 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.4512, allocations: 0 / 461.1 MB, free: 3.055 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.176e-06/0.4513, allocations: 3.984 kB / 461.1 MB, free: 3.051 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002511/0.4538, allocations: 1.33 MB / 462.5 MB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.4538, allocations: 0 / 462.5 MB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005203/0.4543, allocations: 100.6 kB / 462.6 MB, free: 1.578 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009647/0.4553, allocations: 0.5083 MB / 463.1 MB, free: 1.066 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.436e-05/0.4554, allocations: 19.95 kB / 463.1 MB, free: 1.047 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001513/0.4569, allocations: 1.038 MB / 464.1 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.4569, allocations: 0 / 464.1 MB, free: 15.98 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002066/0.459, allocations: 1.09 MB / 465.2 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002575/0.4616, allocations: 1.776 MB / 467 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003195/0.4619, allocations: 188.4 kB / 467.2 MB, free: 12.87 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001324/0.4621, allocations: 12 kB / 467.2 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007918/0.4629, allocations: 152.7 kB / 467.4 MB, free: 12.71 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003129/0.4632, allocations: 144.3 kB / 467.5 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.04e-05/0.4633, allocations: 36.05 kB / 467.5 MB, free: 12.54 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002121/0.4635, allocations: 191 kB / 467.7 MB, free: 12.35 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001309/0.4648, allocations: 136 kB / 467.9 MB, free: 12.22 MB / 362.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.0002866/0.4651, allocations: 147.9 kB / 468 MB, free: 12.07 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001389/0.4665, allocations: 0.7094 MB / 468.7 MB, free: 11.34 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4665, allocations: 0 / 468.7 MB, free: 11.34 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006129/0.4671, allocations: 364.8 kB / 469.1 MB, free: 10.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005496/0.4677, allocations: 70.17 kB / 469.1 MB, free: 10.92 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002418/0.4701, allocations: 1.158 MB / 470.3 MB, free: 9.738 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005333/0.4707, allocations: 0.9096 MB / 471.2 MB, free: 8.801 MB / 362.7 MB Notification: Performance of SimCode: time 5.91e-07/0.4707, allocations: 0 / 471.2 MB, free: 8.801 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1)