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.001573/0.001573, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.476/1.476, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008994/0.0008993, allocations: 94 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002399/0.0002399, allocations: 8 kB / 351.2 MB, free: 15.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2156, allocations: 50.41 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09878/0.3144, allocations: 79.19 MB / 480.8 MB, free: 1.246 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002531/0.3147, allocations: 67.97 kB / 480.8 MB, free: 1.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01296/0.3277, allocations: 4.169 MB / 485 MB, free: 13.02 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.785e-06/0.3278, allocations: 4 kB / 485 MB, free: 13.01 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.786e-05/0.3278, allocations: 4 kB / 485 MB, free: 13.01 MB / 362.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.001177/0.329, allocations: 0.547 MB / 485.6 MB, free: 12.41 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.91e-05/0.329, allocations: 8.031 kB / 485.6 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.511e-05/0.3291, allocations: 46.73 kB / 485.6 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.706e-05/0.3292, allocations: 27.66 kB / 485.6 MB, free: 12.32 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003738/0.3296, allocations: 230.7 kB / 485.9 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.3296, allocations: 12 kB / 485.9 MB, free: 12.04 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.882e-05/0.3297, allocations: 23.91 kB / 485.9 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000586/0.3303, allocations: 232.6 kB / 486.1 MB, free: 11.78 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.244e-05/0.3303, allocations: 11.94 kB / 486.1 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.954e-05/0.3304, allocations: 8 kB / 486.1 MB, free: 11.76 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.202e-05/0.3304, allocations: 4 kB / 486.1 MB, free: 11.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005793/0.331, allocations: 199.7 kB / 486.3 MB, free: 11.56 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001325/0.3323, allocations: 0.6525 MB / 487 MB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006266/0.333, allocations: 218.4 kB / 487.2 MB, free: 10.63 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.056e-05/0.333, allocations: 11.98 kB / 487.2 MB, free: 10.62 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004789/0.3335, allocations: 171.7 kB / 487.4 MB, free: 10.44 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 4.448e-06/0.3335, allocations: 0 / 487.4 MB, free: 10.44 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.003031/0.3366, allocations: 1.252 MB / 488.6 MB, free: 9.074 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.842e-05/0.3367, allocations: 55.41 kB / 488.7 MB, free: 9.008 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001936/0.3369, allocations: 154.4 kB / 488.8 MB, free: 8.848 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.553e-05/0.3369, allocations: 33.7 kB / 488.9 MB, free: 8.809 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.099e-05/0.337, allocations: 128.4 kB / 489 MB, free: 8.676 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.255e-05/0.3371, allocations: 106.6 kB / 489.1 MB, free: 8.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.603e-05/0.3371, allocations: 4 kB / 489.1 MB, free: 8.566 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3373, allocations: 326.8 kB / 489.4 MB, free: 8.238 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002724/0.3376, allocations: 112.2 kB / 489.5 MB, free: 8.129 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000293/0.3379, allocations: 152.2 kB / 489.7 MB, free: 7.965 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002996/0.3382, allocations: 131.9 kB / 489.8 MB, free: 7.832 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.3382, allocations: 4 kB / 489.8 MB, free: 7.828 MB / 362.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009857/0.3392, allocations: 405.8 kB / 490.2 MB, free: 7.418 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.783e-05/0.3393, allocations: 37.7 kB / 490.3 MB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.142e-05/0.3393, allocations: 0 / 490.3 MB, free: 7.375 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002861/0.3396, allocations: 64.81 kB / 490.3 MB, free: 7.309 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002325/0.3398, allocations: 55.84 kB / 490.4 MB, free: 7.254 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006399/0.3405, allocations: 0.607 MB / 491 MB, free: 6.621 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003034/0.3408, allocations: 40 kB / 491 MB, free: 6.582 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.784e-05/0.3409, allocations: 12 kB / 491 MB, free: 6.57 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 () * 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.0002047/0.3411, allocations: 145.8 kB / 491.2 MB, free: 6.418 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.312e-05/0.3411, allocations: 23.72 kB / 491.2 MB, free: 6.395 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007754/0.3419, allocations: 325.8 kB / 491.5 MB, free: 6.062 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.3419, allocations: 4 kB / 491.5 MB, free: 6.059 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.3419, allocations: 0 / 491.5 MB, free: 6.059 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.3419, allocations: 7.984 kB / 491.5 MB, free: 6.051 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001416/0.3434, allocations: 0.699 MB / 492.2 MB, free: 5.289 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.899e-06/0.3434, allocations: 8 kB / 492.2 MB, free: 5.281 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002423/0.3436, allocations: 43.91 kB / 492.3 MB, free: 5.238 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002169/0.3439, allocations: 64.84 kB / 492.3 MB, free: 5.172 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.118e-05/0.3439, allocations: 8 kB / 492.3 MB, free: 5.164 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006379/0.3445, allocations: 0.6069 MB / 493 MB, free: 4.531 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.3446, allocations: 160 / 493 MB, free: 4.531 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001193/0.3458, allocations: 0.5415 MB / 493.5 MB, free: 3.961 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001865/0.346, allocations: 112.9 kB / 493.6 MB, free: 3.832 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.493e-05/0.346, allocations: 4 kB / 493.6 MB, free: 3.828 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002673/0.3463, allocations: 47.95 kB / 493.7 MB, free: 3.781 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/0.3464, allocations: 35.88 kB / 493.7 MB, free: 3.746 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.648e-05/0.3465, allocations: 8 kB / 493.7 MB, free: 3.738 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001419/0.3466, allocations: 131.5 kB / 493.8 MB, free: 3.609 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3466, allocations: 4 kB / 493.8 MB, free: 3.605 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005268/0.3471, allocations: 75.94 kB / 493.9 MB, free: 3.531 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) * 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.001903/0.3491, allocations: 1.194 MB / 495.1 MB, free: 2.301 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009631/0.35, allocations: 369 kB / 495.5 MB, free: 1.922 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3501, allocations: 0 / 495.5 MB, free: 1.922 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000391/0.3505, allocations: 153.1 kB / 495.6 MB, free: 1.773 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004357/0.3509, allocations: 39.33 kB / 495.6 MB, free: 1.734 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003787/0.3547, allocations: 2.18 MB / 497.8 MB, free: 15.49 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005129/0.3553, allocations: 0.7481 MB / 498.6 MB, free: 14.71 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001347/0.3554, allocations: 21.95 kB / 498.6 MB, free: 14.69 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.3556, allocations: 59.41 kB / 498.7 MB, free: 14.63 MB / 378.7 MB Notification: Performance of SimCode: time 1.162e-06/0.3556, allocations: 0 / 498.7 MB, free: 14.63 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02269/0.3783, allocations: 5.36 MB / 0.4922 GB, free: 9.469 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002784/0.3786, allocations: 218.7 kB / 0.4924 GB, free: 9.219 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.78/2.158, allocations: 0 / 0.4924 GB, free: 9.219 MB / 378.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