Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",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.001012/0.001012, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.656/1.656, allocations: 205.3 MB / 214.4 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00121/0.00121, allocations: 90.23 kB / 262.5 MB, free: 1.609 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.199e-05/2.203e-05, allocations: 4 kB / 315.6 MB, free: 22.61 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1133, allocations: 47.58 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4457/0.559, allocations: 77.73 MB / 440.9 MB, free: 1.621 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002575/0.5594, allocations: 75.14 kB / 441 MB, free: 1.582 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01193/0.5713, allocations: 3.918 MB / 444.9 MB, free: 14.31 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5714, allocations: 0 / 444.9 MB, free: 14.31 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.614e-05/0.5714, allocations: 4 kB / 444.9 MB, free: 14.31 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.000696/0.5721, allocations: 499.7 kB / 445.4 MB, free: 13.79 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/0.5722, allocations: 8.031 kB / 445.4 MB, free: 13.78 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.307e-05/0.5722, allocations: 23.72 kB / 445.4 MB, free: 13.76 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003035/0.5725, allocations: 220.4 kB / 445.6 MB, free: 13.52 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.5726, allocations: 7.953 kB / 445.6 MB, free: 13.51 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.317e-05/0.5726, allocations: 12.75 kB / 445.6 MB, free: 13.5 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00031/0.5729, allocations: 126.7 kB / 445.8 MB, free: 13.41 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003112/0.5733, allocations: 179.7 kB / 445.9 MB, free: 13.26 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.973e-05/0.5733, allocations: 11.94 kB / 446 MB, free: 13.25 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.117e-05/0.5733, allocations: 0 / 446 MB, free: 13.25 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.127e-06/0.5733, allocations: 4 kB / 446 MB, free: 13.25 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001267/0.5746, allocations: 0.7295 MB / 446.7 MB, free: 12.57 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003489/0.575, allocations: 144 kB / 446.8 MB, free: 12.46 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000124/0.5751, allocations: 61.47 kB / 446.9 MB, free: 12.41 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.514e-05/0.5752, allocations: 4 kB / 446.9 MB, free: 12.41 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.003e-05/0.5752, allocations: 33.5 kB / 446.9 MB, free: 12.37 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 1.764e-06/0.5752, allocations: 0 / 446.9 MB, free: 12.37 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.001759/0.577, allocations: 0.7709 MB / 447.7 MB, free: 11.6 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.142e-05/0.5771, allocations: 51.41 kB / 447.7 MB, free: 11.54 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001775/0.5772, allocations: 157.5 kB / 447.9 MB, free: 11.4 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.647e-05/0.5773, allocations: 29.7 kB / 447.9 MB, free: 11.36 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.887e-05/0.5774, allocations: 129.5 kB / 448.1 MB, free: 11.25 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.687e-05/0.5775, allocations: 77.28 kB / 448.1 MB, free: 11.18 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.201e-05/0.5775, allocations: 0 / 448.1 MB, free: 11.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.5776, allocations: 328.9 kB / 448.5 MB, free: 10.86 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001039/0.5778, allocations: 57.22 kB / 448.5 MB, free: 10.82 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.5779, allocations: 97.77 kB / 448.6 MB, free: 10.74 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001431/0.5781, allocations: 72 kB / 448.7 MB, free: 10.7 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.5781, allocations: 0 / 448.7 MB, free: 10.7 MB / 330.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003989/0.5785, allocations: 247.4 kB / 448.9 MB, free: 10.5 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.5785, allocations: 4 kB / 448.9 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.5785, allocations: 4 kB / 448.9 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002573/0.5788, allocations: 63.75 kB / 449 MB, free: 10.44 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001603/0.579, allocations: 39.92 kB / 449 MB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005959/0.5796, allocations: 0.6242 MB / 449.7 MB, free: 9.797 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/0.5798, allocations: 24.06 kB / 449.7 MB, free: 9.773 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.133e-05/0.5798, allocations: 15.69 kB / 449.7 MB, free: 9.762 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.000166/0.58, allocations: 112.9 kB / 449.8 MB, free: 9.645 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004209/0.5804, allocations: 214.1 kB / 450 MB, free: 9.465 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.069e-05/0.5805, allocations: 15.81 kB / 450 MB, free: 9.449 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004997/0.581, allocations: 235.5 kB / 450.3 MB, free: 9.266 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.581, allocations: 4 kB / 450.3 MB, free: 9.262 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.581, allocations: 3.953 kB / 450.3 MB, free: 9.258 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.581, allocations: 3.984 kB / 450.3 MB, free: 9.254 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007702/0.5818, allocations: 0.5502 MB / 450.8 MB, free: 8.734 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.198e-06/0.5818, allocations: 4 kB / 450.8 MB, free: 8.73 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001726/0.582, allocations: 31.92 kB / 450.9 MB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001478/0.5821, allocations: 70.62 kB / 450.9 MB, free: 8.645 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.566e-05/0.5822, allocations: 0 / 450.9 MB, free: 8.645 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004869/0.5827, allocations: 0.6195 MB / 451.5 MB, free: 8.035 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.696e-06/0.5827, allocations: 0 / 451.5 MB, free: 8.035 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005418/0.5832, allocations: 419.7 kB / 451.9 MB, free: 7.656 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001044/0.5833, allocations: 107.8 kB / 452.1 MB, free: 7.539 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.766e-05/0.5834, allocations: 6.812 kB / 452.1 MB, free: 7.535 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001876/0.5836, allocations: 27.97 kB / 452.1 MB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.975e-05/0.5837, allocations: 34.78 kB / 452.1 MB, free: 7.477 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.721e-05/0.5837, allocations: 8 kB / 452.1 MB, free: 7.469 MB / 330.7 MB Notification: Performance of sorting global known variables: time 9.814e-05/0.5838, allocations: 119.2 kB / 452.2 MB, free: 7.367 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5838, allocations: 0 / 452.2 MB, free: 7.367 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000378/0.5842, allocations: 56 kB / 452.3 MB, free: 7.312 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001043/0.5853, allocations: 1.169 MB / 453.5 MB, free: 6.168 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004251/0.5857, allocations: 204 kB / 453.7 MB, free: 6.012 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.5857, allocations: 0 / 453.7 MB, free: 6.012 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001853/0.5859, allocations: 95.59 kB / 453.8 MB, free: 5.941 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/0.5862, allocations: 29.75 kB / 453.8 MB, free: 5.918 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001285/0.5875, allocations: 0.6019 MB / 454.4 MB, free: 5.297 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003553/0.5879, allocations: 0.7438 MB / 455.1 MB, free: 4.527 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.094e-05/0.588, allocations: 26 kB / 455.2 MB, free: 4.504 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.737e-05/0.5881, allocations: 57.61 kB / 455.2 MB, free: 4.484 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.5881, allocations: 0 / 455.2 MB, free: 4.484 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02871/0.6168, allocations: 4.185 MB / 459.4 MB, free: 308 kB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002582/0.6171, allocations: 151.2 kB / 459.6 MB, free: 112 kB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.937/2.554, allocations: 0 / 459.6 MB, free: 112 kB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat does not exist to compare? outputFormat=mat