Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.OneWayClutch,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutch",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.002662/0.002662, allocations: 186.5 kB / 16.41 MB, free: 5.727 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.202/2.202, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001155/0.001154, allocations: 93.55 kB / 270.9 MB, free: 8.395 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004003/0.0004004, allocations: 8 kB / 327.1 MB, free: 144 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3399/0.3404, allocations: 47.58 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1313/0.4717, allocations: 78.33 MB / 453 MB, free: 2.328 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002974/0.4721, allocations: 79.95 kB / 453 MB, free: 2.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02038/0.4925, allocations: 4.082 MB / 457.1 MB, free: 14.17 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.4925, allocations: 0 / 457.1 MB, free: 14.17 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.965e-05/0.4925, allocations: 4 kB / 457.1 MB, free: 14.16 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.001421/0.494, allocations: 0.547 MB / 457.7 MB, free: 13.56 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.465e-05/0.494, allocations: 8.031 kB / 457.7 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.696e-05/0.4942, allocations: 54.55 kB / 457.7 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.614e-05/0.4943, allocations: 23.72 kB / 457.8 MB, free: 13.47 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003915/0.4947, allocations: 226.9 kB / 458 MB, free: 13.21 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.689e-05/0.4947, allocations: 15.95 kB / 458 MB, free: 13.19 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.421e-05/0.4948, allocations: 27.91 kB / 458 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008038/0.4956, allocations: 231.1 kB / 458.3 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.69e-05/0.4957, allocations: 0 / 458.3 MB, free: 12.93 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.915e-05/0.4957, allocations: 19.92 kB / 458.3 MB, free: 12.91 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.4957, allocations: 4 kB / 458.3 MB, free: 12.9 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000849/0.4966, allocations: 191.8 kB / 458.5 MB, free: 12.71 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001671/0.4983, allocations: 0.6564 MB / 459.1 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009573/0.4993, allocations: 224.1 kB / 459.3 MB, free: 11.78 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.467e-05/0.4994, allocations: 4 kB / 459.3 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000617/0.5, allocations: 180.5 kB / 459.5 MB, free: 11.59 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 2.955e-06/0.5, allocations: 0 / 459.5 MB, free: 11.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.004465/0.5045, allocations: 1.226 MB / 460.7 MB, free: 10.25 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.126e-05/0.5046, allocations: 63.39 kB / 460.8 MB, free: 10.17 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002592/0.5049, allocations: 157.8 kB / 461 MB, free: 10.01 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.13e-05/0.5049, allocations: 33.7 kB / 461 MB, free: 9.969 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.5051, allocations: 190.8 kB / 461.2 MB, free: 9.781 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001218/0.5052, allocations: 90.7 kB / 461.3 MB, free: 9.691 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.119e-05/0.5053, allocations: 15.94 kB / 461.3 MB, free: 9.676 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.5054, allocations: 318.8 kB / 461.6 MB, free: 9.355 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005277/0.506, allocations: 108.3 kB / 461.7 MB, free: 9.25 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005201/0.5065, allocations: 148 kB / 461.8 MB, free: 9.09 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000494/0.507, allocations: 135.1 kB / 462 MB, free: 8.953 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.507, allocations: 3.953 kB / 462 MB, free: 8.949 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001526/0.5086, allocations: 401.9 kB / 462.4 MB, free: 8.543 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.637e-05/0.5087, allocations: 33.69 kB / 462.4 MB, free: 8.504 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.435e-05/0.5087, allocations: 4 kB / 462.4 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003457/0.5091, allocations: 60.89 kB / 462.5 MB, free: 8.438 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004277/0.5095, allocations: 59.91 kB / 462.5 MB, free: 8.379 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00079/0.5103, allocations: 0.6031 MB / 463.1 MB, free: 7.75 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005592/0.5109, allocations: 48.05 kB / 463.2 MB, free: 7.703 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.012e-05/0.511, allocations: 8 kB / 463.2 MB, free: 7.695 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: 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 () * Number of clocked 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.0002568/0.5112, allocations: 145.7 kB / 463.3 MB, free: 7.543 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.866e-05/0.5113, allocations: 27.66 kB / 463.4 MB, free: 7.516 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00129/0.5126, allocations: 343.1 kB / 463.7 MB, free: 7.168 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.337e-06/0.5127, allocations: 0 / 463.7 MB, free: 7.168 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.5127, allocations: 0 / 463.7 MB, free: 7.168 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.5127, allocations: 8.031 kB / 463.7 MB, free: 7.16 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002089/0.5148, allocations: 0.6951 MB / 464.4 MB, free: 6.402 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.845e-06/0.5149, allocations: 0 / 464.4 MB, free: 6.402 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004681/0.5154, allocations: 47.97 kB / 464.4 MB, free: 6.355 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003049/0.5157, allocations: 60.81 kB / 464.5 MB, free: 6.293 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.441e-05/0.5157, allocations: 4 kB / 464.5 MB, free: 6.289 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000734/0.5165, allocations: 0.6122 MB / 465.1 MB, free: 5.652 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/0.5165, allocations: 0 / 465.1 MB, free: 5.652 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001966/0.5185, allocations: 0.5426 MB / 465.7 MB, free: 5.082 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001956/0.5187, allocations: 112.9 kB / 465.8 MB, free: 4.953 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.686e-05/0.5188, allocations: 8 kB / 465.8 MB, free: 4.945 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004499/0.5193, allocations: 39.95 kB / 465.8 MB, free: 4.906 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001582/0.5195, allocations: 43.89 kB / 465.9 MB, free: 4.863 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.345e-05/0.5195, allocations: 4 kB / 465.9 MB, free: 4.859 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001884/0.5197, allocations: 139.5 kB / 466 MB, free: 4.723 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.5197, allocations: 0 / 466 MB, free: 4.723 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000536/0.5203, allocations: 72 kB / 466.1 MB, free: 4.652 MB / 346.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) * Number of clocked states: 0 () * 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.002456/0.5227, allocations: 1.191 MB / 467.3 MB, free: 3.426 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001369/0.5242, allocations: 364.9 kB / 467.6 MB, free: 3.051 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.5242, allocations: 7.875 kB / 467.6 MB, free: 3.043 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006545/0.5249, allocations: 147.9 kB / 467.8 MB, free: 2.898 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005221/0.5254, allocations: 37.84 kB / 467.8 MB, free: 2.859 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005542/0.531, allocations: 2.218 MB / 470 MB, free: 0.5703 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004433/0.5315, allocations: 0.7403 MB / 470.8 MB, free: 15.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001994/0.5317, allocations: 71.41 kB / 470.8 MB, free: 15.73 MB / 362.7 MB Notification: Performance of SimCode: time 1.192e-06/0.5317, allocations: 0 / 470.8 MB, free: 15.73 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.719/3.25, allocations: 4.612 MB / 475.4 MB, free: 11.14 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat does not exist to compare? outputFormat=mat