Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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.CoupledClutches,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001194/0.001193, allocations: 195.9 kB / 8.538 MB, free: 1.828 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.243/1.243, allocations: 225.5 MB / 234.4 MB, free: 3.332 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009292/0.0009292, allocations: 93.31 kB / 286.3 MB, free: 5.273 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1127/0.1137, allocations: 56.89 MB / 343.2 MB, free: 8.609 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09787/0.2116, allocations: 51.48 MB / 394.7 MB, free: 5.07 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2632/0.4748, allocations: 80.59 MB / 475.3 MB, free: 11.74 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001947/0.4751, allocations: 67.89 kB / 475.4 MB, free: 11.71 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: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.03373/0.5088, allocations: 13.09 MB / 488.5 MB, free: 1.523 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.632e-05/0.5089, allocations: 12 kB / 488.5 MB, free: 1.512 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00041/0.5093, allocations: 87.23 kB / 488.6 MB, free: 1.426 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005248/0.5098, allocations: 365.3 kB / 488.9 MB, free: 1.074 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.688e-05/0.5099, allocations: 19.98 kB / 488.9 MB, free: 1.055 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.804e-05/0.51, allocations: 28 kB / 489 MB, free: 1.027 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008376/0.5108, allocations: 0.4911 MB / 489.4 MB, free: 0.707 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007469/0.5116, allocations: 0.5159 MB / 490 MB, free: 332 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.607e-05/0.5116, allocations: 3.984 kB / 490 MB, free: 328 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.23e-05/0.5117, allocations: 8 kB / 490 MB, free: 320 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.5117, allocations: 8 kB / 490 MB, free: 312 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002767/0.5145, allocations: 1.334 MB / 491.3 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007355/0.5152, allocations: 346.2 kB / 491.7 MB, free: 14.96 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003904/0.5156, allocations: 261.8 kB / 491.9 MB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.711e-05/0.5157, allocations: 13.3 kB / 491.9 MB, free: 14.8 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.5158, allocations: 43.03 kB / 492 MB, free: 14.75 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 5.13e-06/0.5158, allocations: 0 / 492 MB, free: 14.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.003619/0.5194, allocations: 1.826 MB / 493.8 MB, free: 13.23 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.5194, allocations: 60.06 kB / 493.8 MB, free: 13.16 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003845/0.5198, allocations: 278.5 kB / 494.1 MB, free: 12.93 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.55e-05/0.5199, allocations: 35.52 kB / 494.2 MB, free: 12.9 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.695e-05/0.52, allocations: 162.3 kB / 494.3 MB, free: 12.75 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001881/0.5202, allocations: 249.5 kB / 494.6 MB, free: 12.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.307e-05/0.5203, allocations: 0 / 494.6 MB, free: 12.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001126/0.5204, allocations: 360.5 kB / 494.9 MB, free: 12.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004289/0.5208, allocations: 254.3 kB / 495.2 MB, free: 12.06 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004474/0.5213, allocations: 314.8 kB / 495.5 MB, free: 11.87 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000331/0.5216, allocations: 190.8 kB / 495.7 MB, free: 11.75 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.5216, allocations: 0 / 495.7 MB, free: 11.75 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00145/0.5231, allocations: 0.7663 MB / 496.4 MB, free: 11.21 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.5231, allocations: 4 kB / 496.4 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.5231, allocations: 0 / 496.4 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/0.5244, allocations: 494.3 kB / 496.9 MB, free: 10.86 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004263/0.5248, allocations: 107.1 kB / 497 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001574/0.5264, allocations: 1.171 MB / 498.2 MB, free: 9.824 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008562/0.5273, allocations: 151.9 kB / 498.3 MB, free: 9.676 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.682e-05/0.5274, allocations: 23.56 kB / 498.4 MB, free: 9.66 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 (61): * Single equations (assignments): 60 * 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 28} Notification: Performance of prepare postOptimizeDAE: time 0.0002506/0.5276, allocations: 134.6 kB / 498.5 MB, free: 9.535 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001478/0.5278, allocations: 51.44 kB / 498.5 MB, free: 9.484 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001651/0.528, allocations: 73.58 kB / 498.6 MB, free: 9.449 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.069e-05/0.528, allocations: 8 kB / 498.6 MB, free: 9.441 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.528, allocations: 0 / 498.6 MB, free: 9.441 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.528, allocations: 3.984 kB / 498.6 MB, free: 9.438 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002591/0.5306, allocations: 1.429 MB / 0.4883 GB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.636e-06/0.5306, allocations: 5.219 kB / 0.4883 GB, free: 8.344 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005471/0.5312, allocations: 94.88 kB / 0.4884 GB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001159/0.5324, allocations: 469 kB / 0.4889 GB, free: 7.918 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.928e-05/0.5325, allocations: 15.28 kB / 0.4889 GB, free: 7.906 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001467/0.5339, allocations: 1.133 MB / 0.49 GB, free: 6.988 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.115e-06/0.534, allocations: 0 / 0.49 GB, free: 6.988 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001986/0.5359, allocations: 1.155 MB / 0.4911 GB, free: 6.156 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002835/0.5388, allocations: 1.882 MB / 0.493 GB, free: 4.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003936/0.5392, allocations: 200.4 kB / 0.4931 GB, free: 4.035 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001749/0.5394, allocations: 9.75 kB / 0.4932 GB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008195/0.5402, allocations: 159.8 kB / 0.4933 GB, free: 3.871 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003177/0.5406, allocations: 148.3 kB / 0.4934 GB, free: 3.727 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.848e-05/0.5407, allocations: 31.97 kB / 0.4935 GB, free: 3.695 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002922/0.541, allocations: 218.3 kB / 0.4937 GB, free: 3.484 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001368/0.5423, allocations: 140 kB / 0.4938 GB, free: 3.348 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,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,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 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007204/0.5431, allocations: 294.4 kB / 0.4941 GB, free: 3.148 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001393/0.5445, allocations: 0.6662 MB / 0.4948 GB, free: 2.492 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.5445, allocations: 0 / 0.4948 GB, free: 2.492 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007219/0.5452, allocations: 386.2 kB / 0.4951 GB, free: 2.113 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006563/0.5459, allocations: 78.47 kB / 0.4952 GB, free: 2.043 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002538/0.5484, allocations: 1.178 MB / 0.4963 GB, free: 0.8438 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006062/0.5491, allocations: 0.9374 MB / 0.4973 GB, free: 15.88 MB / 378.7 MB Notification: Performance of SimCode: time 1.843e-06/0.5491, allocations: 0 / 0.4973 GB, free: 15.88 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CoupledClutches_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat