Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001509/0.001514, allocations: 186.7 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.023/2.023, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.001183/0.001183, allocations: 94.86 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004332/0.0004332, allocations: 8 kB / 327.1 MB, free: 14.98 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1041, allocations: 47.58 MB / 374.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004317/0.1085, allocations: 2.49 MB / 377.1 MB, free: 12.82 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002767/0.1113, allocations: 1.069 MB / 378.2 MB, free: 11.74 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002964/0.1117, allocations: 7.938 kB / 378.2 MB, free: 11.73 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002576/0.1119, allocations: 51.61 kB / 378.3 MB, free: 11.68 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005473/0.1125, allocations: 171.5 kB / 378.4 MB, free: 11.51 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008883/0.1134, allocations: 215.6 kB / 378.6 MB, free: 11.3 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000997/0.1144, allocations: 484.8 kB / 379.1 MB, free: 10.83 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000312/0.1147, allocations: 119 kB / 379.2 MB, free: 10.71 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006256/0.1154, allocations: 307 kB / 379.5 MB, free: 10.41 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005997/0.116, allocations: 338.8 kB / 379.9 MB, free: 10.07 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001324/0.1162, allocations: 32 kB / 379.9 MB, free: 10.04 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002667/0.1164, allocations: 67.95 kB / 379.9 MB, free: 9.977 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001955/0.1166, allocations: 123.5 kB / 380.1 MB, free: 9.855 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001643/0.1168, allocations: 113.5 kB / 380.2 MB, free: 9.738 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008116/0.1176, allocations: 499 kB / 380.7 MB, free: 9.25 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1177, allocations: 4 kB / 380.7 MB, free: 9.246 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.15e-06/0.1177, allocations: 0 / 380.7 MB, free: 9.246 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.817e-06/0.1177, allocations: 3.938 kB / 380.7 MB, free: 9.242 MB / 282.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.00263/0.1203, allocations: 0.8223 MB / 381.5 MB, free: 8.371 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.492e-05/0.1204, allocations: 12.03 kB / 381.5 MB, free: 8.359 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001573/0.1206, allocations: 82.53 kB / 381.6 MB, free: 8.27 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001654/0.1208, allocations: 59.33 kB / 381.6 MB, free: 8.211 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000668/0.1214, allocations: 354.6 kB / 382 MB, free: 7.828 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.328e-05/0.1215, allocations: 29 kB / 382 MB, free: 7.797 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001495/0.1217, allocations: 44 kB / 382.1 MB, free: 7.754 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001823/0.1235, allocations: 0.6151 MB / 382.7 MB, free: 7.129 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.976e-05/0.1236, allocations: 15.83 kB / 382.7 MB, free: 7.113 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.937e-05/0.1237, allocations: 20 kB / 382.7 MB, free: 7.094 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.592e-05/0.1237, allocations: 8 kB / 382.7 MB, free: 7.086 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002182/0.1259, allocations: 0.6129 MB / 383.3 MB, free: 6.473 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004193/0.1301, allocations: 1.352 MB / 384.7 MB, free: 5.062 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001746/0.1319, allocations: 481.1 kB / 385.2 MB, free: 4.586 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.422e-05/0.132, allocations: 12.55 kB / 385.2 MB, free: 4.574 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.482e-05/0.1321, allocations: 39.12 kB / 385.2 MB, free: 4.527 MB / 282.7 MB Notification: Performance of pre-optimization done (n=58): time 3.757e-06/0.1321, allocations: 0 / 385.2 MB, free: 4.527 MB / 282.7 MB Notification: Performance of matching and sorting (n=64): time 0.01165/0.1438, allocations: 3.022 MB / 388.2 MB, free: 1.363 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.34e-05/0.1439, allocations: 63.95 kB / 388.3 MB, free: 1.285 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000571/0.1445, allocations: 321.7 kB / 388.6 MB, free: 0.957 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001626/0.1447, allocations: 53.69 kB / 388.7 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000192/0.1449, allocations: 247.7 kB / 388.9 MB, free: 0.6562 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002959/0.1452, allocations: 221 kB / 389.1 MB, free: 448 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.343e-05/0.1453, allocations: 16 kB / 389.1 MB, free: 432 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.1454, allocations: 342.8 kB / 389.5 MB, free: 80 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2579/0.4034, allocations: 318 kB / 389.8 MB, free: 20.61 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001933/0.4054, allocations: 389.6 kB / 390.2 MB, free: 20.57 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001479/0.4069, allocations: 255.2 kB / 390.4 MB, free: 20.57 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.4069, allocations: 1 kB / 390.4 MB, free: 20.57 MB / 282.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.004852/0.4118, allocations: 0.9262 MB / 391.3 MB, free: 20.49 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.881e-05/0.4119, allocations: 5.5 kB / 391.3 MB, free: 20.49 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.4119, allocations: 2.031 kB / 391.3 MB, free: 20.49 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003244/0.4152, allocations: 0.7308 MB / 392.1 MB, free: 20.32 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001216/0.4165, allocations: 106.1 kB / 392.2 MB, free: 20.31 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00329/0.4198, allocations: 1.089 MB / 393.3 MB, free: 19.59 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001989/0.4219, allocations: 153 kB / 393.4 MB, free: 19.57 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001836/0.4221, allocations: 24.45 kB / 393.4 MB, free: 19.57 MB / 282.7 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * 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 prepare postOptimizeDAE: time 0.0005361/0.4227, allocations: 186.1 kB / 393.6 MB, free: 19.41 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002315/0.4229, allocations: 51.84 kB / 393.7 MB, free: 19.41 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002584/0.4232, allocations: 71.38 kB / 393.7 MB, free: 19.35 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.437e-05/0.4232, allocations: 5.906 kB / 393.7 MB, free: 19.35 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.4232, allocations: 1 kB / 393.7 MB, free: 19.35 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.688e-05/0.4233, allocations: 6.859 kB / 393.8 MB, free: 19.35 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006226/0.4295, allocations: 1.586 MB / 395.3 MB, free: 18.61 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.358e-06/0.4296, allocations: 1.062 kB / 395.3 MB, free: 18.61 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008983/0.4305, allocations: 92.81 kB / 395.4 MB, free: 18.61 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002174/0.4327, allocations: 0.7006 MB / 396.1 MB, free: 18.42 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001649/0.4329, allocations: 27.84 kB / 396.2 MB, free: 18.41 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002145/0.435, allocations: 1.069 MB / 397.2 MB, free: 17.7 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.4351, allocations: 0 / 397.2 MB, free: 17.7 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004442/0.4396, allocations: 1.326 MB / 398.6 MB, free: 17.15 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004464/0.4401, allocations: 191.5 kB / 398.7 MB, free: 17.03 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001998/0.4403, allocations: 19.75 kB / 398.8 MB, free: 17.02 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001259/0.4415, allocations: 144 kB / 398.9 MB, free: 17 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000553/0.4421, allocations: 149.2 kB / 399 MB, free: 16.98 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.4422, allocations: 31.41 kB / 399.1 MB, free: 16.98 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003743/0.4426, allocations: 230.1 kB / 399.3 MB, free: 16.86 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4426, allocations: 4 kB / 399.3 MB, free: 16.85 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008924/0.4435, allocations: 158.8 kB / 399.5 MB, free: 16.83 MB / 282.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) * Number of clocked states: 0 () * 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.005185/0.4487, allocations: 1.906 MB / 401.4 MB, free: 15.75 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002971/0.4518, allocations: 0.7841 MB / 402.2 MB, free: 15.49 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.4518, allocations: 0 / 402.2 MB, free: 15.49 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001652/0.4535, allocations: 433.6 kB / 402.6 MB, free: 15.35 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009834/0.4545, allocations: 75.5 kB / 402.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/0.4659, allocations: 4.257 MB / 406.9 MB, free: 12.95 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003817/0.4664, allocations: 0.8533 MB / 407.8 MB, free: 12.25 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004077/0.4668, allocations: 149.6 kB / 407.9 MB, free: 12.15 MB / 282.7 MB Notification: Performance of SimCode: time 1.312e-06/0.4668, allocations: 0 / 407.9 MB, free: 12.15 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.252/3.719, allocations: 10.14 MB / 418 MB, free: 3.766 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_CoupledClutches_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat