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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000945/0.0009452, allocations: 96.52 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008526/0.0008526, allocations: 192.6 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.372/1.372, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002517/0.0002517, allocations: 7.984 kB / 306.8 MB, free: 1.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1119, allocations: 51.49 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.003517/0.1155, allocations: 2.767 MB / 361.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00183/0.1174, allocations: 1.147 MB / 362.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001726/0.1176, allocations: 8 kB / 362.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002873/0.1179, allocations: 71.48 kB / 362.3 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003578/0.1182, allocations: 182.8 kB / 362.5 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003859/0.1186, allocations: 187.7 kB / 362.7 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007532/0.1194, allocations: 0.7178 MB / 363.4 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002065/0.1196, allocations: 111.1 kB / 363.5 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004493/0.1201, allocations: 338.8 kB / 363.8 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004236/0.1205, allocations: 362.7 kB / 364.2 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.136e-05/0.1206, allocations: 32 kB / 364.2 MB, free: 8.055 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000204/0.1208, allocations: 83.91 kB / 364.3 MB, free: 7.973 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001754/0.121, allocations: 135.5 kB / 364.4 MB, free: 7.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.1211, allocations: 117.5 kB / 364.5 MB, free: 7.719 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005373/0.1216, allocations: 0.5457 MB / 365.1 MB, free: 7.172 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1216, allocations: 7.875 kB / 365.1 MB, free: 7.164 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1217, allocations: 0 / 365.1 MB, free: 7.164 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.1217, allocations: 0 / 365.1 MB, free: 7.164 MB / 302.1 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.001558/0.1232, allocations: 0.8685 MB / 365.9 MB, free: 6.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/0.1233, allocations: 16.02 kB / 366 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001081/0.1234, allocations: 78.53 kB / 366 MB, free: 6.148 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002935/0.1237, allocations: 95.22 kB / 366.1 MB, free: 6.055 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000476/0.1242, allocations: 372.9 kB / 366.5 MB, free: 5.648 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.208e-05/0.1242, allocations: 33 kB / 366.5 MB, free: 5.617 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.344e-05/0.1243, allocations: 47.95 kB / 366.6 MB, free: 5.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001127/0.1255, allocations: 0.6111 MB / 367.2 MB, free: 4.945 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.294e-05/0.1255, allocations: 7.844 kB / 367.2 MB, free: 4.938 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.334e-05/0.1256, allocations: 20 kB / 367.2 MB, free: 4.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.1256, allocations: 12 kB / 367.2 MB, free: 4.906 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001173/0.1268, allocations: 0.5777 MB / 367.8 MB, free: 4.332 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002269/0.129, allocations: 1.387 MB / 369.2 MB, free: 2.887 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/0.1301, allocations: 0.507 MB / 369.7 MB, free: 2.367 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005623/0.1307, allocations: 310.4 kB / 370 MB, free: 2.062 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.587e-05/0.1307, allocations: 4.562 kB / 370 MB, free: 2.059 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.258e-05/0.1308, allocations: 43.12 kB / 370 MB, free: 2.008 MB / 302.1 MB Notification: Performance of pre-optimization done (n=67): time 2.545e-06/0.1308, allocations: 0 / 370 MB, free: 2.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.2145/0.3453, allocations: 2.999 MB / 373 MB, free: 19.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.552e-05/0.3454, allocations: 60.62 kB / 373.1 MB, free: 19.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005905/0.346, allocations: 352.5 kB / 373.4 MB, free: 19.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.451e-05/0.3461, allocations: 52.16 kB / 373.5 MB, free: 19.27 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000172/0.3463, allocations: 198.4 kB / 373.7 MB, free: 19.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002608/0.3466, allocations: 254.4 kB / 373.9 MB, free: 19.01 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.496e-05/0.3466, allocations: 14.62 kB / 374 MB, free: 19.01 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.3468, allocations: 358.2 kB / 374.3 MB, free: 18.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008889/0.3477, allocations: 305.2 kB / 374.6 MB, free: 18.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008698/0.3485, allocations: 368.7 kB / 375 MB, free: 18.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006665/0.3492, allocations: 237.7 kB / 375.2 MB, free: 18.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/0.3492, allocations: 0.5156 kB / 375.2 MB, free: 18.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002415/0.3516, allocations: 0.9114 MB / 376.1 MB, free: 18.26 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.604e-05/0.3517, allocations: 9.828 kB / 376.1 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.162e-05/0.3517, allocations: 0 / 376.1 MB, free: 18.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001507/0.3532, allocations: 0.5036 MB / 376.6 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004152/0.3537, allocations: 102 kB / 376.7 MB, free: 18.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001577/0.3552, allocations: 1.082 MB / 377.8 MB, free: 17.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008114/0.3561, allocations: 146.7 kB / 377.9 MB, free: 17.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.023e-05/0.3561, allocations: 26.84 kB / 378 MB, free: 17.31 MB / 302.1 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 (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.000333/0.3565, allocations: 189 kB / 378.2 MB, free: 17.15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001807/0.3567, allocations: 57.09 kB / 378.2 MB, free: 17.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001966/0.3569, allocations: 81.52 kB / 378.3 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.526e-05/0.3569, allocations: 6.625 kB / 378.3 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.691e-05/0.3569, allocations: 1.188 kB / 378.3 MB, free: 17.06 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.419e-05/0.3569, allocations: 8.172 kB / 378.3 MB, free: 17.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003153/0.3601, allocations: 1.606 MB / 379.9 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.3601, allocations: 4 kB / 379.9 MB, free: 16.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004619/0.3606, allocations: 96.31 kB / 380 MB, free: 16.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001292/0.3619, allocations: 480.6 kB / 380.5 MB, free: 16.11 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.429e-05/0.362, allocations: 27.83 kB / 380.5 MB, free: 16.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001471/0.3635, allocations: 1.06 MB / 381.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.3635, allocations: 1.688 kB / 381.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002838/0.3663, allocations: 1.3 MB / 382.9 MB, free: 14.74 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003638/0.3667, allocations: 195.4 kB / 383.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001202/0.3668, allocations: 30.58 kB / 383.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006956/0.3675, allocations: 146.4 kB / 383.2 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000403/0.3679, allocations: 153.7 kB / 383.4 MB, free: 14.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.91e-05/0.368, allocations: 32.14 kB / 383.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003494/0.3684, allocations: 250 kB / 383.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3684, allocations: 0 / 383.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006756/0.3691, allocations: 156.4 kB / 383.8 MB, free: 14.37 MB / 302.1 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 28} Notification: Performance of Backend phase and start with SimCode phase: time 0.003563/0.3726, allocations: 2.132 MB / 385.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001851/0.3745, allocations: 0.7604 MB / 386.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.3745, allocations: 0 / 386.7 MB, free: 12.87 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000919/0.3754, allocations: 444.9 kB / 387.1 MB, free: 12.71 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000773/0.3762, allocations: 98.3 kB / 387.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006779/0.383, allocations: 3.941 MB / 391.2 MB, free: 10.56 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003794/0.3834, allocations: 0.8575 MB / 392 MB, free: 9.855 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002811/0.3837, allocations: 61.09 kB / 392.1 MB, free: 9.832 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002602/0.384, allocations: 163.5 kB / 392.3 MB, free: 9.715 MB / 302.1 MB Notification: Performance of SimCode: time 9.22e-07/0.384, allocations: 1.375 kB / 392.3 MB, free: 9.715 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03145/0.4155, allocations: 16.29 MB / 408.5 MB, free: 12.48 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002421/0.4158, allocations: 257.8 kB / 408.8 MB, free: 12.14 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.216/2.632, allocations: 0 / 408.8 MB, free: 12.14 MB / 318.1 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