Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",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.001085/0.001085, allocations: 176.8 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 221.5 MB / 230.3 MB, free: 7.516 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.0008281/0.0008281, allocations: 101.7 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.543e-05/1.545e-05, allocations: 4 kB / 337.1 MB, free: 9.93 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09405/0.09408, allocations: 50.42 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3108/0.405, allocations: 78.36 MB / 465.9 MB, free: 444 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002481/0.4053, allocations: 67.97 kB / 466 MB, free: 376 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01235/0.4176, allocations: 4.009 MB / 470 MB, free: 12.37 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4177, allocations: 0 / 470 MB, free: 12.37 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.4177, allocations: 4 kB / 470 MB, free: 12.37 MB / 346.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.0006786/0.4184, allocations: 483.1 kB / 470.5 MB, free: 11.85 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.907e-05/0.4184, allocations: 12.03 kB / 470.5 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.062e-05/0.4185, allocations: 23.72 kB / 470.5 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003277/0.4188, allocations: 230.6 kB / 470.7 MB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.937e-05/0.4189, allocations: 7.938 kB / 470.7 MB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.707e-05/0.4189, allocations: 12 kB / 470.8 MB, free: 11.53 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002721/0.4192, allocations: 136.8 kB / 470.9 MB, free: 11.39 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003159/0.4195, allocations: 184.8 kB / 471.1 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.647e-05/0.4195, allocations: 4 kB / 471.1 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.323e-05/0.4196, allocations: 3.984 kB / 471.1 MB, free: 11.2 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.4196, allocations: 4 kB / 471.1 MB, free: 11.19 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001168/0.4208, allocations: 0.7251 MB / 471.8 MB, free: 10.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002943/0.4211, allocations: 134.4 kB / 471.9 MB, free: 10.27 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001098/0.4212, allocations: 62.75 kB / 472 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.464e-05/0.4212, allocations: 8 kB / 472 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.4213, allocations: 30.56 kB / 472 MB, free: 10.16 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 1.403e-06/0.4213, allocations: 0 / 472 MB, free: 10.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.00136/0.4226, allocations: 0.7706 MB / 472.8 MB, free: 9.297 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.545e-05/0.4227, allocations: 51.41 kB / 472.9 MB, free: 9.234 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.4228, allocations: 150 kB / 473 MB, free: 9.082 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.284e-05/0.4229, allocations: 29.7 kB / 473 MB, free: 9.047 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.694e-05/0.4229, allocations: 132.4 kB / 473.2 MB, free: 8.914 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.719e-05/0.423, allocations: 78.91 kB / 473.2 MB, free: 8.836 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.177e-05/0.423, allocations: 0.75 kB / 473.2 MB, free: 8.836 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001031/0.4231, allocations: 326.8 kB / 473.6 MB, free: 8.508 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.4232, allocations: 63.98 kB / 473.6 MB, free: 8.445 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001266/0.4234, allocations: 95.64 kB / 473.7 MB, free: 8.336 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000142/0.4235, allocations: 65.12 kB / 473.8 MB, free: 8.273 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.4235, allocations: 0 / 473.8 MB, free: 8.273 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004082/0.4239, allocations: 240.8 kB / 474 MB, free: 8.031 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.424, allocations: 7.938 kB / 474 MB, free: 8.023 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.424, allocations: 12 kB / 474 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002064/0.4242, allocations: 60.81 kB / 474.1 MB, free: 7.949 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001483/0.4244, allocations: 39.94 kB / 474.1 MB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005041/0.4249, allocations: 0.6187 MB / 474.7 MB, free: 7.266 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001816/0.4251, allocations: 24.05 kB / 474.8 MB, free: 7.242 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.081e-05/0.4251, allocations: 19.92 kB / 474.8 MB, free: 7.223 MB / 346.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.0001406/0.4253, allocations: 114.3 kB / 474.9 MB, free: 7.105 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004286/0.4257, allocations: 216.6 kB / 475.1 MB, free: 6.887 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.173e-05/0.4257, allocations: 19.72 kB / 475.1 MB, free: 6.867 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004709/0.4262, allocations: 237.1 kB / 475.4 MB, free: 6.625 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.4262, allocations: 0 / 475.4 MB, free: 6.625 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.4262, allocations: 4 kB / 475.4 MB, free: 6.621 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.4263, allocations: 0 / 475.4 MB, free: 6.621 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007613/0.427, allocations: 0.545 MB / 475.9 MB, free: 6.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.427, allocations: 4 kB / 475.9 MB, free: 6.016 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001639/0.4272, allocations: 27.98 kB / 475.9 MB, free: 5.988 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001597/0.4274, allocations: 64.91 kB / 476 MB, free: 5.922 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.391e-05/0.4274, allocations: 11.98 kB / 476 MB, free: 5.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004679/0.4279, allocations: 0.603 MB / 476.6 MB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.4279, allocations: 4.031 kB / 476.6 MB, free: 5.277 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005405/0.4284, allocations: 432 kB / 477 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001068/0.4286, allocations: 108.9 kB / 477.2 MB, free: 4.688 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.433e-05/0.4286, allocations: 0 / 477.2 MB, free: 4.688 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001853/0.4288, allocations: 23.98 kB / 477.2 MB, free: 4.664 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.618e-05/0.4289, allocations: 27.95 kB / 477.2 MB, free: 4.637 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.4289, allocations: 7.984 kB / 477.2 MB, free: 4.629 MB / 346.7 MB Notification: Performance of sorting global known variables: time 9.86e-05/0.429, allocations: 119.3 kB / 477.3 MB, free: 4.512 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.429, allocations: 0 / 477.3 MB, free: 4.512 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003348/0.4294, allocations: 56 kB / 477.4 MB, free: 4.457 MB / 346.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.0009766/0.4303, allocations: 1.197 MB / 478.6 MB, free: 3.211 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004448/0.4308, allocations: 201.4 kB / 478.8 MB, free: 3.008 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.4308, allocations: 0 / 478.8 MB, free: 3.008 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000186/0.431, allocations: 87.92 kB / 478.9 MB, free: 2.922 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003111/0.4313, allocations: 36.92 kB / 478.9 MB, free: 2.887 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001267/0.4326, allocations: 0.6109 MB / 479.5 MB, free: 2.23 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003186/0.4329, allocations: 0.7438 MB / 480.3 MB, free: 1.461 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.779e-05/0.433, allocations: 14.08 kB / 480.3 MB, free: 1.445 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.075e-05/0.4331, allocations: 59.41 kB / 480.3 MB, free: 1.387 MB / 346.7 MB Notification: Performance of SimCode: time 3.11e-07/0.4331, allocations: 4 kB / 480.3 MB, free: 1.383 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02481/0.4579, allocations: 4.183 MB / 484.5 MB, free: 13.23 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003206/0.4583, allocations: 159.7 kB / 484.7 MB, free: 13.04 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.768/2.226, allocations: 4.031 kB / 484.7 MB, free: 13.03 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat does not exist to compare? outputFormat=mat