Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.OneWayClutch,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",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.001582/0.001582, allocations: 175.6 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.652/1.652, allocations: 221.3 MB / 235.5 MB, free: 2.879 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.0008885/0.0008887, allocations: 99.97 kB / 286.5 MB, free: 172 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.916e-05/2.925e-05, allocations: 4 kB / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1105, allocations: 50.42 MB / 394.3 MB, free: 1.758 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.343/0.4536, allocations: 79.12 MB / 473.5 MB, free: 8.344 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/0.4538, allocations: 75.94 kB / 473.5 MB, free: 8.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01223/0.4661, allocations: 4.137 MB / 477.7 MB, free: 4.137 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4661, allocations: 0 / 477.7 MB, free: 4.137 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.232e-05/0.4661, allocations: 4 kB / 477.7 MB, free: 4.133 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0008561/0.467, allocations: 0.516 MB / 478.2 MB, free: 3.566 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.467, allocations: 12.03 kB / 478.2 MB, free: 3.555 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.439e-05/0.4671, allocations: 62.66 kB / 478.3 MB, free: 3.484 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.049e-05/0.4672, allocations: 23.72 kB / 478.3 MB, free: 3.461 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002745/0.4675, allocations: 222.7 kB / 478.5 MB, free: 3.203 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.4675, allocations: 12 kB / 478.5 MB, free: 3.191 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.605e-05/0.4676, allocations: 20 kB / 478.5 MB, free: 3.172 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003852/0.4679, allocations: 211.2 kB / 478.8 MB, free: 2.953 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.468, allocations: 7.859 kB / 478.8 MB, free: 2.945 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.74e-05/0.468, allocations: 11.98 kB / 478.8 MB, free: 2.934 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.468, allocations: 4 kB / 478.8 MB, free: 2.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002934/0.4683, allocations: 143.9 kB / 478.9 MB, free: 2.789 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001059/0.4694, allocations: 0.6526 MB / 479.6 MB, free: 2.082 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003613/0.4698, allocations: 170.5 kB / 479.7 MB, free: 1.906 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001459/0.4699, allocations: 88.84 kB / 479.8 MB, free: 1.816 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.63e-05/0.47, allocations: 11.92 kB / 479.8 MB, free: 1.805 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000282/0.4703, allocations: 151.7 kB / 480 MB, free: 1.645 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 1.593e-06/0.4703, allocations: 3.938 kB / 480 MB, free: 1.641 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.001443/0.4717, allocations: 0.8809 MB / 480.9 MB, free: 0.6641 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.968e-05/0.4718, allocations: 59.41 kB / 480.9 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00015/0.4719, allocations: 153.8 kB / 481.1 MB, free: 444 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.472, allocations: 29.7 kB / 481.1 MB, free: 408 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.412e-05/0.472, allocations: 128.5 kB / 481.2 MB, free: 276 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.156e-05/0.4721, allocations: 94.64 kB / 481.3 MB, free: 180 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.897e-05/0.4721, allocations: 12 kB / 481.3 MB, free: 168 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.4723, allocations: 326.8 kB / 481.7 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001502/0.4724, allocations: 84.31 kB / 481.7 MB, free: 15.75 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/0.4726, allocations: 120.3 kB / 481.9 MB, free: 15.62 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001632/0.4728, allocations: 103 kB / 482 MB, free: 15.52 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.4728, allocations: 4 kB / 482 MB, free: 15.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006168/0.4734, allocations: 350 kB / 482.3 MB, free: 15.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.089e-05/0.4735, allocations: 33.7 kB / 482.3 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.293e-05/0.4735, allocations: 0 / 482.3 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002283/0.4737, allocations: 64.81 kB / 482.4 MB, free: 15.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002077/0.474, allocations: 55.91 kB / 482.4 MB, free: 15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004948/0.4745, allocations: 0.6069 MB / 483.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002539/0.4747, allocations: 40 kB / 483.1 MB, free: 14.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.588e-05/0.4748, allocations: 12 kB / 483.1 MB, free: 14.31 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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.000117/0.4749, allocations: 129 kB / 483.2 MB, free: 14.18 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.334e-05/0.475, allocations: 19.8 kB / 483.3 MB, free: 14.16 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005231/0.4755, allocations: 286.2 kB / 483.5 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.4755, allocations: 0 / 483.5 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.503e-06/0.4755, allocations: 7.953 kB / 483.5 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.4755, allocations: 0 / 483.5 MB, free: 13.86 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009658/0.4765, allocations: 0.6482 MB / 484.2 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.4765, allocations: 0 / 484.2 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002301/0.4767, allocations: 43.91 kB / 484.2 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001836/0.4769, allocations: 60.83 kB / 484.3 MB, free: 13.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.559e-05/0.477, allocations: 12.02 kB / 484.3 MB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004312/0.4774, allocations: 0.6108 MB / 484.9 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.4774, allocations: 0 / 484.9 MB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007008/0.4781, allocations: 466.7 kB / 485.4 MB, free: 11.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.4783, allocations: 112.8 kB / 485.5 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.276e-05/0.4783, allocations: 8 kB / 485.5 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002604/0.4786, allocations: 39.95 kB / 485.5 MB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.4787, allocations: 47.88 kB / 485.6 MB, free: 11.69 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.028e-05/0.4787, allocations: 4 kB / 485.6 MB, free: 11.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001149/0.4788, allocations: 139.4 kB / 485.7 MB, free: 11.55 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4789, allocations: 0 / 485.7 MB, free: 11.55 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00037/0.4792, allocations: 75.95 kB / 485.8 MB, free: 11.47 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001198/0.4804, allocations: 1.097 MB / 486.9 MB, free: 10.34 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006175/0.4811, allocations: 309.5 kB / 487.2 MB, free: 10.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.437e-06/0.4811, allocations: 0 / 487.2 MB, free: 10.02 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002626/0.4814, allocations: 124.1 kB / 487.3 MB, free: 9.898 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003364/0.4817, allocations: 40.52 kB / 487.3 MB, free: 9.859 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.4829, allocations: 0.5751 MB / 487.9 MB, free: 9.246 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003372/0.4832, allocations: 0.7518 MB / 488.7 MB, free: 8.465 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001005/0.4833, allocations: 22.08 kB / 488.7 MB, free: 8.445 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.4834, allocations: 63.41 kB / 488.8 MB, free: 8.383 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4834, allocations: 0 / 488.8 MB, free: 8.383 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01787/0.5013, allocations: 5.335 MB / 494.1 MB, free: 3.207 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002065/0.5016, allocations: 180.9 kB / 494.3 MB, free: 2.984 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.825/2.326, allocations: 4 kB / 494.3 MB, free: 2.98 MB / 362.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat does not exist to compare? outputFormat=mat