Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_cpp_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.002269/0.002269, allocations: 181.6 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.223/2.223, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001085/0.001085, allocations: 86.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.351e-05/4.398e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1078, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4253/0.5331, allocations: 78.14 MB / 447.3 MB, free: 15.05 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003168/0.5335, allocations: 72.83 kB / 447.4 MB, free: 15.01 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01967/0.5532, allocations: 3.951 MB / 451.3 MB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.046e-06/0.5533, allocations: 0 / 451.3 MB, free: 11.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.208e-05/0.5533, allocations: 7.938 kB / 451.4 MB, free: 11.65 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.001053/0.5544, allocations: 487.4 kB / 451.8 MB, free: 11.14 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.614e-05/0.5545, allocations: 12.02 kB / 451.8 MB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.818e-05/0.5546, allocations: 53.11 kB / 451.9 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.043e-05/0.5547, allocations: 23.72 kB / 451.9 MB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003818/0.555, allocations: 229.7 kB / 452.1 MB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.049e-05/0.5551, allocations: 19.8 kB / 452.2 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.598e-05/0.5552, allocations: 22.88 kB / 452.2 MB, free: 10.78 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005419/0.5557, allocations: 204.8 kB / 452.4 MB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.621e-05/0.5558, allocations: 7.891 kB / 452.4 MB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.793e-05/0.5558, allocations: 7.875 kB / 452.4 MB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.2e-05/0.5558, allocations: 4 kB / 452.4 MB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004245/0.5563, allocations: 140 kB / 452.5 MB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001888/0.5582, allocations: 0.7766 MB / 453.3 MB, free: 9.789 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005185/0.5587, allocations: 147 kB / 453.5 MB, free: 9.672 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001919/0.559, allocations: 67.11 kB / 453.5 MB, free: 9.629 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.666e-05/0.559, allocations: 4 kB / 453.5 MB, free: 9.625 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.5591, allocations: 30.91 kB / 453.6 MB, free: 9.586 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 3.477e-06/0.5591, allocations: 0 / 453.6 MB, free: 9.586 MB / 330.7 MB Notification: Performance of matching and sorting (n=22): time 0.002302/0.5614, allocations: 0.8176 MB / 454.4 MB, free: 8.793 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.402e-05/0.5615, allocations: 59.39 kB / 454.4 MB, free: 8.723 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002782/0.5618, allocations: 173.1 kB / 454.6 MB, free: 8.57 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.498e-05/0.5618, allocations: 28.89 kB / 454.6 MB, free: 8.539 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.562, allocations: 200.5 kB / 454.8 MB, free: 8.355 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.5621, allocations: 72.48 kB / 454.9 MB, free: 8.293 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.198e-05/0.5621, allocations: 11.62 kB / 454.9 MB, free: 8.285 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.5623, allocations: 318.7 kB / 455.2 MB, free: 7.969 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000214/0.5625, allocations: 75.89 kB / 455.3 MB, free: 7.922 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002496/0.5628, allocations: 108.8 kB / 455.4 MB, free: 7.828 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002145/0.563, allocations: 64.8 kB / 455.5 MB, free: 7.785 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.563, allocations: 4 kB / 455.5 MB, free: 7.781 MB / 330.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007/0.5638, allocations: 255.7 kB / 455.7 MB, free: 7.586 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.5638, allocations: 4 kB / 455.7 MB, free: 7.582 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.25e-05/0.5638, allocations: 4 kB / 455.7 MB, free: 7.578 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003657/0.5642, allocations: 72.08 kB / 455.8 MB, free: 7.523 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003099/0.5645, allocations: 31.98 kB / 455.8 MB, free: 7.492 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007428/0.5653, allocations: 0.6087 MB / 456.4 MB, free: 6.895 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003707/0.5657, allocations: 31.94 kB / 456.5 MB, free: 6.867 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.183e-05/0.5657, allocations: 11.88 kB / 456.5 MB, free: 6.859 MB / 330.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: 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.0001467/0.5659, allocations: 124.4 kB / 456.6 MB, free: 6.738 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.99e-05/0.566, allocations: 19.72 kB / 456.6 MB, free: 6.719 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008506/0.5668, allocations: 253.8 kB / 456.9 MB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.5669, allocations: 4 kB / 456.9 MB, free: 6.52 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.678e-06/0.5669, allocations: 4 kB / 456.9 MB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.073e-05/0.5669, allocations: 3.984 kB / 456.9 MB, free: 6.512 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001308/0.5682, allocations: 0.5963 MB / 457.5 MB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-05/0.5683, allocations: 4 kB / 457.5 MB, free: 5.945 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003717/0.5687, allocations: 35.91 kB / 457.5 MB, free: 5.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002934/0.569, allocations: 68.12 kB / 457.6 MB, free: 5.855 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.713e-05/0.569, allocations: 7.688 kB / 457.6 MB, free: 5.852 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006807/0.5697, allocations: 0.6016 MB / 458.2 MB, free: 5.258 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.875e-06/0.5697, allocations: 0 / 458.2 MB, free: 5.258 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009379/0.5707, allocations: 451.1 kB / 458.6 MB, free: 4.855 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001792/0.5709, allocations: 108.6 kB / 458.7 MB, free: 4.738 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.396e-05/0.5709, allocations: 7.812 kB / 458.7 MB, free: 4.734 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003417/0.5713, allocations: 27.97 kB / 458.8 MB, free: 4.707 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001172/0.5714, allocations: 27.98 kB / 458.8 MB, free: 4.684 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.351e-05/0.5715, allocations: 15.92 kB / 458.8 MB, free: 4.672 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002059/0.5717, allocations: 138.8 kB / 458.9 MB, free: 4.551 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.6e-07/0.5717, allocations: 0 / 458.9 MB, free: 4.551 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005042/0.5722, allocations: 71.44 kB / 459 MB, free: 4.488 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.001618/0.5738, allocations: 1.213 MB / 460.2 MB, free: 3.312 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007571/0.5746, allocations: 211.1 kB / 460.4 MB, free: 3.148 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.5747, allocations: 0 / 460.4 MB, free: 3.148 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003473/0.575, allocations: 95.16 kB / 460.5 MB, free: 3.078 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004773/0.5755, allocations: 31.67 kB / 460.6 MB, free: 3.055 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002225/0.5778, allocations: 0.6554 MB / 461.2 MB, free: 2.387 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004512/0.5783, allocations: 0.7518 MB / 462 MB, free: 1.605 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001486/0.5784, allocations: 57.92 kB / 462 MB, free: 1.586 MB / 330.7 MB Notification: Performance of SimCode: time 1.243e-06/0.5784, allocations: 0 / 462 MB, free: 1.586 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.906/3.484, allocations: 4.252 MB / 466.3 MB, free: 13.37 MB / 346.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat does not exist to compare? outputFormat=mat