Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008586/0.0008587, allocations: 91.11 kB / 16.95 MB, free: 6.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008111/0.0008114, allocations: 182.9 kB / 17.84 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.492/1.492, allocations: 205.4 MB / 224 MB, free: 13.14 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004373/0.0004374, allocations: 12 kB / 280.9 MB, free: 3.621 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09385/0.0943, allocations: 47.57 MB / 328.4 MB, free: 3.984 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002384/0.09673, allocations: 1.807 MB / 330.3 MB, free: 2.16 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.09784, allocations: 0.7025 MB / 331 MB, free: 1.449 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.367e-05/0.09795, allocations: 0 / 331 MB, free: 1.449 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001409/0.0981, allocations: 23.84 kB / 331 MB, free: 1.426 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001384/0.09824, allocations: 55.56 kB / 331 MB, free: 1.371 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000259/0.09851, allocations: 87.81 kB / 331.1 MB, free: 1.285 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002532/0.09877, allocations: 243.5 kB / 331.4 MB, free: 1.047 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001378/0.09892, allocations: 48.5 kB / 331.4 MB, free: 1 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001617/0.09909, allocations: 99.61 kB / 331.5 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001711/0.09927, allocations: 111.6 kB / 331.6 MB, free: 0.793 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.98e-05/0.09931, allocations: 12 kB / 331.6 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001075/0.09943, allocations: 55.97 kB / 331.7 MB, free: 0.7266 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.497e-05/0.09951, allocations: 47.81 kB / 331.7 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7.831e-05/0.09959, allocations: 61.58 kB / 331.8 MB, free: 0.6133 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002507/0.09985, allocations: 187.8 kB / 332 MB, free: 440 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.09986, allocations: 0 / 332 MB, free: 440 kB / 270.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.09987, allocations: 0 / 332 MB, free: 440 kB / 270.1 MB Notification: Performance of Transformations before backend: time 4.538e-06/0.09988, allocations: 0 / 332 MB, free: 440 kB / 270.1 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.00108/0.101, allocations: 0.543 MB / 332.5 MB, free: 15.83 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.874e-05/0.101, allocations: 8.031 kB / 332.5 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.607e-05/0.1011, allocations: 58.48 kB / 332.6 MB, free: 15.76 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.78e-05/0.1011, allocations: 19.81 kB / 332.6 MB, free: 15.74 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002642/0.1014, allocations: 234.6 kB / 332.8 MB, free: 15.47 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.14e-05/0.1014, allocations: 12 kB / 332.8 MB, free: 15.46 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.402e-05/0.1015, allocations: 28 kB / 332.9 MB, free: 15.43 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004548/0.1019, allocations: 235.2 kB / 333.1 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.102, allocations: 4 kB / 333.1 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.396e-05/0.102, allocations: 4 kB / 333.1 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.102, allocations: 4 kB / 333.1 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004599/0.1025, allocations: 215.8 kB / 333.3 MB, free: 14.96 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009731/0.1035, allocations: 0.6797 MB / 334 MB, free: 14.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005297/0.104, allocations: 214.3 kB / 334.2 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002295/0.1042, allocations: 116.8 kB / 334.3 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.157e-05/0.1043, allocations: 0 / 334.3 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003874/0.1047, allocations: 167.6 kB / 334.5 MB, free: 13.72 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.1047, allocations: 0 / 334.5 MB, free: 13.72 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.002358/0.107, allocations: 1.222 MB / 335.7 MB, free: 12.38 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.306e-05/0.1071, allocations: 55.41 kB / 335.8 MB, free: 12.32 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002002/0.1073, allocations: 194.8 kB / 335.9 MB, free: 12.12 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.063e-05/0.1074, allocations: 37.64 kB / 336 MB, free: 12.07 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.766e-05/0.1074, allocations: 132.3 kB / 336.1 MB, free: 11.94 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.181e-05/0.1075, allocations: 86.75 kB / 336.2 MB, free: 11.86 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.715e-05/0.1076, allocations: 12 kB / 336.2 MB, free: 11.84 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.1077, allocations: 334.8 kB / 336.5 MB, free: 11.51 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000271/0.108, allocations: 108.2 kB / 336.6 MB, free: 11.4 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002704/0.1083, allocations: 156.3 kB / 336.8 MB, free: 11.23 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002659/0.1086, allocations: 135 kB / 336.9 MB, free: 11.1 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.283e-06/0.1086, allocations: 0 / 336.9 MB, free: 11.1 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008092/0.1094, allocations: 421.3 kB / 337.3 MB, free: 10.67 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.951e-05/0.1095, allocations: 33.77 kB / 337.4 MB, free: 10.63 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1095, allocations: 0 / 337.4 MB, free: 10.63 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002252/0.1097, allocations: 72.8 kB / 337.4 MB, free: 10.56 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002646/0.11, allocations: 55.91 kB / 337.5 MB, free: 10.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006377/0.1106, allocations: 0.607 MB / 338.1 MB, free: 9.871 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002388/0.1109, allocations: 47.98 kB / 338.1 MB, free: 9.824 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.416e-05/0.1109, allocations: 8 kB / 338.2 MB, free: 9.816 MB / 286.1 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): 30 * Array equations: 0 * Algorithm blocks: 1 * 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 prepare postOptimizeDAE: time 0.0001396/0.1111, allocations: 150.1 kB / 338.3 MB, free: 9.66 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.247e-05/0.1111, allocations: 19.81 kB / 338.3 MB, free: 9.641 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.537e-05/0.1112, allocations: 29.86 kB / 338.4 MB, free: 9.609 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.1112, allocations: 0 / 338.4 MB, free: 9.609 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.1112, allocations: 4 kB / 338.4 MB, free: 9.605 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1112, allocations: 0 / 338.4 MB, free: 9.605 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/0.1122, allocations: 0.698 MB / 339.1 MB, free: 8.848 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.1122, allocations: 0 / 339.1 MB, free: 8.848 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001979/0.1124, allocations: 39.97 kB / 339.1 MB, free: 8.809 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000148/0.1126, allocations: 72.81 kB / 339.2 MB, free: 8.734 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.817e-05/0.1126, allocations: 4 kB / 339.2 MB, free: 8.73 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004176/0.1131, allocations: 0.6109 MB / 339.8 MB, free: 8.094 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.1131, allocations: 0 / 339.8 MB, free: 8.094 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008998/0.114, allocations: 0.5194 MB / 340.3 MB, free: 7.555 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001037/0.1141, allocations: 112.9 kB / 340.4 MB, free: 7.426 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.087e-05/0.1141, allocations: 12 kB / 340.4 MB, free: 7.414 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002336/0.1144, allocations: 47.89 kB / 340.5 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.623e-05/0.1145, allocations: 35.88 kB / 340.5 MB, free: 7.332 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.117e-05/0.1145, allocations: 12 kB / 340.5 MB, free: 7.32 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001159/0.1146, allocations: 139.2 kB / 340.6 MB, free: 7.184 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1146, allocations: 0 / 340.6 MB, free: 7.184 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003395/0.115, allocations: 72 kB / 340.7 MB, free: 7.113 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (20): * Single equations (assignments): 17 * 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.001272/0.1163, allocations: 1.088 MB / 341.8 MB, free: 5.996 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006922/0.117, allocations: 335.2 kB / 342.1 MB, free: 5.656 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.117, allocations: 4 kB / 342.1 MB, free: 5.652 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003356/0.1173, allocations: 143.8 kB / 342.3 MB, free: 5.512 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003721/0.1177, allocations: 40.5 kB / 342.3 MB, free: 5.473 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00286/0.1206, allocations: 1.756 MB / 344.1 MB, free: 3.656 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.1209, allocations: 0.7364 MB / 344.8 MB, free: 2.895 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001056/0.121, allocations: 21.95 kB / 344.8 MB, free: 2.875 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.1211, allocations: 63.41 kB / 344.9 MB, free: 2.812 MB / 286.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1211, allocations: 4 kB / 344.9 MB, free: 2.809 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1518/0.2729, allocations: 5.435 MB / 350.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002232/0.2732, allocations: 214 kB / 350.5 MB, free: 13.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.906/2.18, allocations: 3.938 kB / 350.5 MB, free: 13.13 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat does not exist to compare? outputFormat=mat