Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Mechanics_Rotational_Examples_CoupledClutches",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.CoupledClutches,fileNamePrefix="Modelica_3_2_3_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.00122/0.00122, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.422/1.422, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0008091/0.0008087, allocations: 74.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.957e-05/2.967e-05, allocations: 7.922 kB / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07805/0.0781, allocations: 47.56 MB / 370.1 MB, free: 1.617 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2877/0.3659, allocations: 78.76 MB / 448.9 MB, free: 14.57 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002186/0.3661, allocations: 66.53 kB / 448.9 MB, free: 14.54 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02627/0.3924, allocations: 9.197 MB / 458.1 MB, free: 6.609 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.697e-06/0.3925, allocations: 0 / 458.1 MB, free: 6.609 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.021e-05/0.3925, allocations: 11.94 kB / 458.1 MB, free: 6.598 MB / 330.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.001499/0.394, allocations: 0.7749 MB / 458.9 MB, free: 5.805 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.619e-05/0.3941, allocations: 12.03 kB / 458.9 MB, free: 5.793 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001043/0.3942, allocations: 85.2 kB / 459 MB, free: 5.727 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.3943, allocations: 63.19 kB / 459.1 MB, free: 5.664 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004629/0.3947, allocations: 336.3 kB / 459.4 MB, free: 5.328 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.377e-05/0.3948, allocations: 32.64 kB / 459.4 MB, free: 5.309 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.126e-05/0.3949, allocations: 48.06 kB / 459.5 MB, free: 5.277 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009267/0.3958, allocations: 0.5519 MB / 460 MB, free: 4.75 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.648e-05/0.3959, allocations: 11.91 kB / 460 MB, free: 4.738 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.83e-05/0.3959, allocations: 16 kB / 460.1 MB, free: 4.723 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.458e-05/0.396, allocations: 12 kB / 460.1 MB, free: 4.711 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008637/0.3968, allocations: 499.8 kB / 460.6 MB, free: 4.223 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00242/0.3993, allocations: 1.347 MB / 461.9 MB, free: 2.82 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008215/0.4001, allocations: 440.7 kB / 462.3 MB, free: 2.379 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004182/0.4005, allocations: 270.5 kB / 462.6 MB, free: 2.109 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.263e-05/0.4006, allocations: 8.562 kB / 462.6 MB, free: 2.102 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.4007, allocations: 47.02 kB / 462.7 MB, free: 2.047 MB / 330.7 MB Notification: Performance of pre-optimization done (n=61): time 2.345e-06/0.4007, allocations: 0 / 462.7 MB, free: 2.047 MB / 330.7 MB Notification: Performance of matching and sorting (n=67): time 0.003498/0.4042, allocations: 1.924 MB / 464.6 MB, free: 32 kB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.569e-05/0.4042, allocations: 59.97 kB / 464.6 MB, free: 15.96 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002719/0.4045, allocations: 254.7 kB / 464.9 MB, free: 15.7 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.216e-05/0.4046, allocations: 53.69 kB / 464.9 MB, free: 15.64 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.4047, allocations: 185.4 kB / 465.1 MB, free: 15.46 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001817/0.4049, allocations: 232.8 kB / 465.4 MB, free: 15.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.96e-05/0.4049, allocations: 12 kB / 465.4 MB, free: 15.22 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.4051, allocations: 358.8 kB / 465.7 MB, free: 14.86 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004296/0.4055, allocations: 261.5 kB / 466 MB, free: 14.61 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00046/0.406, allocations: 319 kB / 466.3 MB, free: 14.29 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003365/0.4063, allocations: 194.1 kB / 466.5 MB, free: 14.1 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.4064, allocations: 3.984 kB / 466.5 MB, free: 14.1 MB / 346.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001334/0.4077, allocations: 0.794 MB / 467.3 MB, free: 13.29 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.4077, allocations: 4 kB / 467.3 MB, free: 13.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.018e-05/0.4078, allocations: 4 kB / 467.3 MB, free: 13.28 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001015/0.4088, allocations: 0.5614 MB / 467.8 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00038/0.4092, allocations: 95.83 kB / 467.9 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001235/0.4104, allocations: 0.982 MB / 468.9 MB, free: 11.62 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007081/0.4111, allocations: 147.9 kB / 469.1 MB, free: 11.47 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-05/0.4112, allocations: 31.98 kB / 469.1 MB, free: 11.44 MB / 346.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.0001744/0.4114, allocations: 143.1 kB / 469.2 MB, free: 11.3 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001055/0.4115, allocations: 47.44 kB / 469.3 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001632/0.4132, allocations: 0.8627 MB / 470.1 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.4132, allocations: 4 kB / 470.1 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.4132, allocations: 0 / 470.1 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.4132, allocations: 7.984 kB / 470.1 MB, free: 10.35 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002275/0.4155, allocations: 1.434 MB / 471.6 MB, free: 8.855 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.4155, allocations: 3.938 kB / 471.6 MB, free: 8.852 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004195/0.4159, allocations: 95.89 kB / 471.7 MB, free: 8.758 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009086/0.4169, allocations: 0.5278 MB / 472.2 MB, free: 8.227 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.296e-05/0.4169, allocations: 27.95 kB / 472.2 MB, free: 8.199 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001138/0.4181, allocations: 0.9439 MB / 473.2 MB, free: 7.23 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.4181, allocations: 0 / 473.2 MB, free: 7.23 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001844/0.4199, allocations: 1.121 MB / 474.3 MB, free: 6.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002783/0.4202, allocations: 188.4 kB / 474.5 MB, free: 5.887 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.801e-05/0.4203, allocations: 20 kB / 474.5 MB, free: 5.867 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006485/0.421, allocations: 144 kB / 474.6 MB, free: 5.727 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002722/0.4213, allocations: 156.2 kB / 474.8 MB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.664e-05/0.4214, allocations: 31.95 kB / 474.8 MB, free: 5.543 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002127/0.4216, allocations: 214.2 kB / 475 MB, free: 5.332 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4216, allocations: 0 / 475 MB, free: 5.332 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005599/0.4221, allocations: 164 kB / 475.2 MB, free: 5.172 MB / 346.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.002323/0.4245, allocations: 1.697 MB / 476.9 MB, free: 3.449 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001299/0.4258, allocations: 0.7467 MB / 477.6 MB, free: 2.688 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.005e-06/0.4258, allocations: 0 / 477.6 MB, free: 2.688 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006673/0.4265, allocations: 389.9 kB / 478 MB, free: 2.305 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005401/0.427, allocations: 70.7 kB / 478.1 MB, free: 2.238 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002549/0.4296, allocations: 1.326 MB / 479.4 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004195/0.43, allocations: 0.8557 MB / 480.3 MB, free: 16 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001756/0.4302, allocations: 40.17 kB / 480.3 MB, free: 15.95 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002223/0.4304, allocations: 147.4 kB / 480.5 MB, free: 15.81 MB / 362.7 MB Notification: Performance of SimCode: time 9.61e-07/0.4304, allocations: 0 / 480.5 MB, free: 15.81 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0317/0.4621, allocations: 15.37 MB / 495.8 MB, free: 432 kB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002329/0.4624, allocations: 187.5 kB / 496 MB, free: 200 kB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.221/2.684, allocations: 0 / 496 MB, free: 200 kB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_CoupledClutches.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat does not exist to compare? outputFormat=mat