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.001056/0.001056, allocations: 180.4 kB / 17.01 MB, free: 5.125 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.5/1.5, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0009432/0.0009432, allocations: 96.14 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002715/0.0002715, allocations: 8 kB / 328.3 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2314/0.2317, allocations: 47.56 MB / 375.9 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09172/0.3234, allocations: 78.25 MB / 454.1 MB, free: 2.406 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002502/0.3237, allocations: 71.95 kB / 454.2 MB, free: 2.336 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01115/0.3349, allocations: 3.973 MB / 458.2 MB, free: 14.36 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3349, allocations: 4 kB / 458.2 MB, free: 14.36 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.3349, allocations: 4 kB / 458.2 MB, free: 14.36 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.0006636/0.3356, allocations: 0.4911 MB / 458.7 MB, free: 13.82 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.3357, allocations: 8.031 kB / 458.7 MB, free: 13.81 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.783e-05/0.3357, allocations: 58.55 kB / 458.8 MB, free: 13.74 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.689e-05/0.3358, allocations: 23.72 kB / 458.8 MB, free: 13.72 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002654/0.3361, allocations: 228.4 kB / 459 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.595e-05/0.3361, allocations: 24.42 kB / 459 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.008e-05/0.3361, allocations: 16 kB / 459 MB, free: 13.41 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003752/0.3365, allocations: 209.7 kB / 459.2 MB, free: 13.2 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/0.3365, allocations: 7.906 kB / 459.3 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.129e-05/0.3366, allocations: 12 kB / 459.3 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.345e-06/0.3366, allocations: 4 kB / 459.3 MB, free: 13.17 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003126/0.3369, allocations: 161 kB / 459.4 MB, free: 13.02 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/0.338, allocations: 0.7761 MB / 460.2 MB, free: 12.17 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000323/0.3384, allocations: 142.5 kB / 460.3 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.771e-05/0.3384, allocations: 4 kB / 460.3 MB, free: 12.02 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.3384, allocations: 38.56 kB / 460.4 MB, free: 11.97 MB / 346.7 MB Notification: Performance of pre-optimization done (n=20): time 1.492e-06/0.3385, allocations: 0 / 460.4 MB, free: 11.97 MB / 346.7 MB Notification: Performance of matching and sorting (n=22): time 0.001754/0.3402, allocations: 1.048 MB / 461.4 MB, free: 10.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.135e-05/0.3403, allocations: 55.41 kB / 461.5 MB, free: 10.75 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.3404, allocations: 175.8 kB / 461.7 MB, free: 10.58 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.3404, allocations: 33.64 kB / 461.7 MB, free: 10.54 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.712e-05/0.3405, allocations: 136.2 kB / 461.8 MB, free: 10.4 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.856e-05/0.3406, allocations: 78.94 kB / 461.9 MB, free: 10.32 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.169e-05/0.3406, allocations: 4 kB / 461.9 MB, free: 10.32 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.561e-05/0.3407, allocations: 338.8 kB / 462.2 MB, free: 9.98 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000148/0.3409, allocations: 72.5 kB / 462.3 MB, free: 9.91 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001604/0.341, allocations: 115.6 kB / 462.4 MB, free: 9.781 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001448/0.3412, allocations: 77.09 kB / 462.5 MB, free: 9.707 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.3412, allocations: 4 kB / 462.5 MB, free: 9.703 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004475/0.3416, allocations: 276.7 kB / 462.8 MB, free: 9.426 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.3417, allocations: 7.938 kB / 462.8 MB, free: 9.418 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.3417, allocations: 8 kB / 462.8 MB, free: 9.41 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002145/0.3419, allocations: 64.88 kB / 462.8 MB, free: 9.344 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.3421, allocations: 43.92 kB / 462.9 MB, free: 9.301 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004351/0.3425, allocations: 0.6186 MB / 463.5 MB, free: 8.656 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001817/0.3427, allocations: 32.03 kB / 463.5 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.307e-05/0.3427, allocations: 8 kB / 463.5 MB, free: 8.617 MB / 346.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 () * Number of clocked 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.0001196/0.3428, allocations: 137.8 kB / 463.7 MB, free: 8.473 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.17e-05/0.3429, allocations: 19.8 kB / 463.7 MB, free: 8.453 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005324/0.3434, allocations: 265 kB / 464 MB, free: 8.18 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.3434, allocations: 4 kB / 464 MB, free: 8.176 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.3435, allocations: 0 / 464 MB, free: 8.176 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.3435, allocations: 0 / 464 MB, free: 8.176 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008197/0.3443, allocations: 0.6186 MB / 464.6 MB, free: 7.488 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3443, allocations: 0 / 464.6 MB, free: 7.488 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001671/0.3445, allocations: 35.88 kB / 464.6 MB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000157/0.3446, allocations: 64.81 kB / 464.7 MB, free: 7.387 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.181e-05/0.3447, allocations: 11.98 kB / 464.7 MB, free: 7.375 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003797/0.3451, allocations: 0.6007 MB / 465.3 MB, free: 6.75 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.3451, allocations: 0 / 465.3 MB, free: 6.75 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005836/0.3457, allocations: 472.2 kB / 465.8 MB, free: 6.242 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.272e-05/0.3458, allocations: 116.8 kB / 465.9 MB, free: 6.109 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.414e-05/0.3458, allocations: 4 kB / 465.9 MB, free: 6.105 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.346, allocations: 31.97 kB / 465.9 MB, free: 6.074 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.795e-05/0.3461, allocations: 24.09 kB / 465.9 MB, free: 6.051 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.3461, allocations: 8 kB / 465.9 MB, free: 6.043 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001128/0.3462, allocations: 147.4 kB / 466.1 MB, free: 5.898 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3462, allocations: 0 / 466.1 MB, free: 5.898 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003232/0.3466, allocations: 71.94 kB / 466.1 MB, free: 5.828 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) * Number of clocked states: 0 () * 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.0009381/0.3475, allocations: 1.229 MB / 467.4 MB, free: 4.551 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004784/0.348, allocations: 235.1 kB / 467.6 MB, free: 4.316 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.348, allocations: 0 / 467.6 MB, free: 4.316 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002254/0.3482, allocations: 99.89 kB / 467.7 MB, free: 4.219 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002725/0.3485, allocations: 34.94 kB / 467.7 MB, free: 4.188 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002455/0.351, allocations: 2.08 MB / 469.8 MB, free: 2.031 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002568/0.3513, allocations: 0.7521 MB / 470.6 MB, free: 1.254 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.117e-05/0.3513, allocations: 21.94 kB / 470.6 MB, free: 1.234 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.997e-05/0.3514, allocations: 55.42 kB / 470.6 MB, free: 1.18 MB / 346.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3514, allocations: 0 / 470.6 MB, free: 1.18 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01561/0.3671, allocations: 4.858 MB / 475.5 MB, free: 12.35 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002588/0.3673, allocations: 225.6 kB / 475.7 MB, free: 12.1 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.662/2.03, allocations: 0 / 475.7 MB, free: 12.1 MB / 362.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