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.002147/0.002147, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.066/2.066, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001081/0.001081, allocations: 86.31 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.319e-05/2.326e-05, allocations: 0 / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3711/0.3712, allocations: 47.56 MB / 362.4 MB, free: 45.74 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1857/0.5569, allocations: 78.11 MB / 440.5 MB, free: 8.113 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004501/0.5575, allocations: 71.97 kB / 440.6 MB, free: 8.043 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.07013/0.6276, allocations: 9.123 MB / 449.7 MB, free: 14.97 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.635e-05/0.6278, allocations: 0 / 449.7 MB, free: 14.97 MB / 347.1 MB Notification: Performance of Transformations before backend: time 0.0001158/0.6279, allocations: 15.94 kB / 449.7 MB, free: 14.95 MB / 347.1 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.004359/0.6323, allocations: 0.7862 MB / 450.5 MB, free: 14.12 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.388e-05/0.6324, allocations: 8.031 kB / 450.5 MB, free: 14.11 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005305/0.633, allocations: 59.25 kB / 450.6 MB, free: 14.05 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001284/0.6343, allocations: 339.6 kB / 450.9 MB, free: 13.68 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.554e-05/0.6344, allocations: 17.2 kB / 450.9 MB, free: 13.67 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002315/0.6346, allocations: 24.84 kB / 451 MB, free: 13.64 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002288/0.637, allocations: 482.4 kB / 451.4 MB, free: 13.18 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002482/0.6395, allocations: 0.5 MB / 451.9 MB, free: 12.66 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.342e-05/0.6397, allocations: 11.84 kB / 451.9 MB, free: 12.65 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001294/0.6398, allocations: 0 / 451.9 MB, free: 12.65 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.07e-05/0.6399, allocations: 12 kB / 452 MB, free: 12.64 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006693/0.6466, allocations: 1.261 MB / 453.2 MB, free: 11.33 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002268/0.6489, allocations: 419.6 kB / 453.6 MB, free: 10.91 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001198/0.6502, allocations: 250.5 kB / 453.9 MB, free: 10.66 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001613/0.6504, allocations: 14.22 kB / 453.9 MB, free: 10.65 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.68e-05/0.6505, allocations: 47.06 kB / 453.9 MB, free: 10.6 MB / 347.1 MB Notification: Performance of pre-optimization done (n=61): time 6.081e-06/0.6505, allocations: 0 / 453.9 MB, free: 10.6 MB / 347.1 MB Notification: Performance of matching and sorting (n=67): time 0.01118/0.6617, allocations: 1.849 MB / 455.8 MB, free: 8.656 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001025/0.6619, allocations: 59.97 kB / 455.8 MB, free: 8.582 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005479/0.6624, allocations: 229.2 kB / 456.1 MB, free: 8.352 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000297/0.6628, allocations: 45.69 kB / 456.1 MB, free: 8.301 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002492/0.663, allocations: 239.7 kB / 456.3 MB, free: 8.062 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000483/0.6635, allocations: 228.8 kB / 456.6 MB, free: 7.836 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.83e-05/0.6637, allocations: 4 kB / 456.6 MB, free: 7.832 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0002098/0.6639, allocations: 338.8 kB / 456.9 MB, free: 7.492 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/0.665, allocations: 249.5 kB / 457.1 MB, free: 7.25 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001235/0.6663, allocations: 297.5 kB / 457.4 MB, free: 6.953 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001457/0.6678, allocations: 200.5 kB / 457.6 MB, free: 6.758 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.38e-05/0.6678, allocations: 4 kB / 457.6 MB, free: 6.754 MB / 347.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.004002/0.6719, allocations: 0.7356 MB / 458.4 MB, free: 6.012 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.692e-05/0.672, allocations: 8 kB / 458.4 MB, free: 6.004 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-05/0.672, allocations: 0 / 458.4 MB, free: 6.004 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002726/0.6748, allocations: 0.5517 MB / 458.9 MB, free: 5.453 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/0.676, allocations: 103.8 kB / 459 MB, free: 5.352 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00376/0.6798, allocations: 1.056 MB / 460.1 MB, free: 4.27 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002119/0.682, allocations: 143.9 kB / 460.2 MB, free: 4.129 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000262/0.6823, allocations: 31.98 kB / 460.3 MB, free: 4.098 MB / 347.1 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.0005249/0.6829, allocations: 132.3 kB / 460.4 MB, free: 3.961 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004174/0.6871, allocations: 0.6866 MB / 461.1 MB, free: 3.266 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003404/0.6875, allocations: 51.39 kB / 461.1 MB, free: 3.215 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004377/0.6919, allocations: 0.8083 MB / 461.9 MB, free: 2.387 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-05/0.692, allocations: 8 kB / 461.9 MB, free: 2.379 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.072e-05/0.692, allocations: 0 / 461.9 MB, free: 2.379 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.828e-05/0.6921, allocations: 3.984 kB / 461.9 MB, free: 2.375 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005993/0.6981, allocations: 1.329 MB / 463.3 MB, free: 0.9961 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.454e-05/0.6981, allocations: 3.938 kB / 463.3 MB, free: 0.9922 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001443/0.6996, allocations: 99.88 kB / 463.4 MB, free: 0.8945 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002784/0.7025, allocations: 0.5277 MB / 463.9 MB, free: 372 kB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002653/0.7028, allocations: 19.95 kB / 463.9 MB, free: 352 kB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003459/0.7063, allocations: 1.031 MB / 465 MB, free: 15.29 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.315e-06/0.7064, allocations: 0 / 465 MB, free: 15.29 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005236/0.7116, allocations: 1.078 MB / 466 MB, free: 14.19 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007417/0.7124, allocations: 180.4 kB / 466.2 MB, free: 14 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002677/0.7127, allocations: 19.98 kB / 466.2 MB, free: 13.98 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002055/0.7148, allocations: 127.9 kB / 466.4 MB, free: 13.85 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008926/0.7158, allocations: 152.2 kB / 466.5 MB, free: 13.7 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001988/0.716, allocations: 31.97 kB / 466.5 MB, free: 13.67 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.000479/0.7165, allocations: 192.6 kB / 466.7 MB, free: 13.48 MB / 363.1 MB Notification: Performance of sort global known variables: time 7.91e-07/0.7166, allocations: 6.719 kB / 466.7 MB, free: 13.48 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.001578/0.7182, allocations: 136 kB / 466.9 MB, free: 13.35 MB / 363.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,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.006278/0.7245, allocations: 1.648 MB / 468.5 MB, free: 11.67 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.003377/0.728, allocations: 0.7129 MB / 469.2 MB, free: 10.94 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 7.555e-06/0.728, allocations: 3.938 kB / 469.2 MB, free: 10.94 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001739/0.7298, allocations: 368.9 kB / 469.6 MB, free: 10.58 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001463/0.7313, allocations: 65.8 kB / 469.7 MB, free: 10.52 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006801/0.7382, allocations: 1.288 MB / 470.9 MB, free: 9.18 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007593/0.739, allocations: 0.8632 MB / 471.8 MB, free: 8.293 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005838/0.7396, allocations: 147.4 kB / 471.9 MB, free: 8.148 MB / 363.1 MB Notification: Performance of SimCode: time 1.503e-06/0.7397, allocations: 0 / 471.9 MB, free: 8.148 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.219/3.959, allocations: 10.13 MB / 482.1 MB, free: 14.05 MB / 379.1 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