Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00117/0.001169, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.498/1.498, allocations: 221.3 MB / 235.5 MB, free: 2.965 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008755/0.0008755, allocations: 95.78 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.621e-05/2.623e-05, allocations: 4 kB / 343.9 MB, free: 4.234 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1186, allocations: 50.43 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3583/0.4769, allocations: 79.68 MB / 474 MB, free: 7.793 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002724/0.4773, allocations: 69.69 kB / 474.1 MB, free: 7.727 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02814/0.5054, allocations: 9.334 MB / 483.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.5055, allocations: 0 / 483.4 MB, free: 14.38 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.152e-05/0.5055, allocations: 8 kB / 483.4 MB, free: 14.38 MB / 362.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.001575/0.5071, allocations: 0.776 MB / 484.2 MB, free: 13.55 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.264e-05/0.5071, allocations: 12.03 kB / 484.2 MB, free: 13.54 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001362/0.5073, allocations: 82.52 kB / 484.3 MB, free: 13.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.5074, allocations: 59.25 kB / 484.4 MB, free: 13.39 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004842/0.5079, allocations: 339.5 kB / 484.7 MB, free: 13.02 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.762e-05/0.508, allocations: 37 kB / 484.7 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.5081, allocations: 40 kB / 484.8 MB, free: 12.94 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009513/0.509, allocations: 0.5527 MB / 485.3 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.341e-05/0.5091, allocations: 7.906 kB / 485.3 MB, free: 12.37 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.086e-05/0.5091, allocations: 23.95 kB / 485.4 MB, free: 12.35 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.69e-05/0.5092, allocations: 12 kB / 485.4 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008679/0.51, allocations: 0.4919 MB / 485.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002599/0.5126, allocations: 1.348 MB / 487.2 MB, free: 10.44 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008893/0.5136, allocations: 440.3 kB / 487.6 MB, free: 10 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004349/0.514, allocations: 278.5 kB / 487.9 MB, free: 9.723 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.7e-05/0.5141, allocations: 4.562 kB / 487.9 MB, free: 9.719 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.765e-05/0.5141, allocations: 43.06 kB / 488 MB, free: 9.668 MB / 362.7 MB Notification: Performance of pre-optimization done (n=61): time 2.354e-06/0.5141, allocations: 0 / 488 MB, free: 9.668 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.003941/0.5181, allocations: 1.928 MB / 489.9 MB, free: 7.648 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.163e-05/0.5182, allocations: 59.97 kB / 489.9 MB, free: 7.578 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003298/0.5185, allocations: 250.7 kB / 490.2 MB, free: 7.324 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.058e-05/0.5186, allocations: 53.69 kB / 490.2 MB, free: 7.266 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000157/0.5188, allocations: 189.4 kB / 490.4 MB, free: 7.078 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002101/0.519, allocations: 224.9 kB / 490.6 MB, free: 6.855 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.796e-05/0.519, allocations: 19.92 kB / 490.7 MB, free: 6.836 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.5192, allocations: 354.8 kB / 491 MB, free: 6.48 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004375/0.5197, allocations: 261.5 kB / 491.3 MB, free: 6.227 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000512/0.5202, allocations: 315.1 kB / 491.6 MB, free: 5.914 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003732/0.5206, allocations: 190.1 kB / 491.8 MB, free: 5.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.5206, allocations: 4 kB / 491.8 MB, free: 5.727 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001525/0.5221, allocations: 0.794 MB / 492.6 MB, free: 4.918 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.918e-05/0.5222, allocations: 7.953 kB / 492.6 MB, free: 4.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.788e-05/0.5222, allocations: 4 kB / 492.6 MB, free: 4.906 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001195/0.5234, allocations: 0.5571 MB / 493.1 MB, free: 4.348 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004242/0.5238, allocations: 99.83 kB / 493.2 MB, free: 4.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001424/0.5253, allocations: 0.9811 MB / 494.2 MB, free: 3.246 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008333/0.5261, allocations: 147.9 kB / 494.3 MB, free: 3.102 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001034/0.5262, allocations: 31.98 kB / 494.4 MB, free: 3.07 MB / 362.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 () * 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.0002713/0.5265, allocations: 147.1 kB / 494.5 MB, free: 2.922 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001372/0.5267, allocations: 43.44 kB / 494.6 MB, free: 2.879 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001816/0.5285, allocations: 0.8705 MB / 495.4 MB, free: 1.988 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.5285, allocations: 7.938 kB / 495.4 MB, free: 1.98 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.5285, allocations: 0 / 495.4 MB, free: 1.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.5285, allocations: 7.938 kB / 495.5 MB, free: 1.973 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002466/0.531, allocations: 1.426 MB / 496.9 MB, free: 496 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/0.531, allocations: 3.984 kB / 496.9 MB, free: 492 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004936/0.5315, allocations: 91.89 kB / 497 MB, free: 400 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009592/0.5325, allocations: 0.524 MB / 497.5 MB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.665e-05/0.5326, allocations: 31.95 kB / 497.5 MB, free: 15.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001196/0.5338, allocations: 0.9465 MB / 498.5 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.5338, allocations: 0 / 498.5 MB, free: 14.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001937/0.5358, allocations: 1.113 MB / 499.6 MB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000329/0.5361, allocations: 188.4 kB / 499.8 MB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001125/0.5362, allocations: 27.89 kB / 499.8 MB, free: 13.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006868/0.5369, allocations: 143.9 kB / 499.9 MB, free: 13.36 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003325/0.5373, allocations: 152.3 kB / 0.4884 GB, free: 13.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.39e-05/0.5374, allocations: 31.95 kB / 0.4884 GB, free: 13.18 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003302/0.5377, allocations: 214.1 kB / 0.4886 GB, free: 12.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5377, allocations: 0 / 0.4886 GB, free: 12.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007211/0.5384, allocations: 160 kB / 0.4888 GB, free: 12.81 MB / 378.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.002542/0.541, allocations: 1.709 MB / 0.4904 GB, free: 11.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001473/0.5425, allocations: 0.7507 MB / 0.4912 GB, free: 10.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.5425, allocations: 0 / 0.4912 GB, free: 10.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000668/0.5432, allocations: 377.9 kB / 0.4915 GB, free: 9.934 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006173/0.5438, allocations: 75.05 kB / 0.4916 GB, free: 9.863 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002733/0.5465, allocations: 1.335 MB / 0.4929 GB, free: 8.496 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004255/0.547, allocations: 0.8518 MB / 0.4937 GB, free: 7.609 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002234/0.5472, allocations: 44.17 kB / 0.4938 GB, free: 7.562 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00023/0.5475, allocations: 151.4 kB / 0.4939 GB, free: 7.414 MB / 378.7 MB Notification: Performance of SimCode: time 3.266e-06/0.5475, allocations: 0 / 0.4939 GB, free: 7.414 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03252/0.58, allocations: 15.35 MB / 0.5089 GB, free: 8.254 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001789/0.5802, allocations: 196.1 kB / 0.5091 GB, free: 8.02 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.419/2.999, allocations: 0 / 0.5091 GB, free: 8.02 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat