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.001583/0.001583, allocations: 188.5 kB / 16.4 MB, free: 5.625 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.073/2.073, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001154/0.001154, allocations: 98.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003854/0.0003855, allocations: 12 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09639/0.09681, allocations: 47.59 MB / 374.6 MB, free: 15.34 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003148/0.1, allocations: 1.749 MB / 376.4 MB, free: 13.57 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001767/0.1018, allocations: 0.7104 MB / 377.1 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001419/0.102, allocations: 0 / 377.1 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001567/0.1022, allocations: 19.84 kB / 377.1 MB, free: 12.84 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002801/0.1025, allocations: 79.77 kB / 377.2 MB, free: 12.76 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003963/0.1029, allocations: 83.78 kB / 377.3 MB, free: 12.68 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003622/0.1033, allocations: 172.1 kB / 377.4 MB, free: 12.51 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001801/0.1035, allocations: 44.56 kB / 377.5 MB, free: 12.46 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002407/0.1037, allocations: 103.6 kB / 377.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002372/0.104, allocations: 111.6 kB / 377.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.969e-05/0.104, allocations: 8 kB / 377.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001674/0.1042, allocations: 51.95 kB / 377.8 MB, free: 12.2 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.11e-05/0.1043, allocations: 39.83 kB / 377.8 MB, free: 12.16 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.145e-05/0.1044, allocations: 69.58 kB / 377.9 MB, free: 12.08 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003457/0.1048, allocations: 195.8 kB / 378.1 MB, free: 11.89 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.1048, allocations: 0 / 378.1 MB, free: 11.89 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.1048, allocations: 3.938 kB / 378.1 MB, free: 11.89 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.1048, allocations: 0 / 378.1 MB, free: 11.89 MB / 282.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.1062, allocations: 0.5313 MB / 378.6 MB, free: 11.3 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.1063, allocations: 12.03 kB / 378.6 MB, free: 11.29 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.575e-05/0.1064, allocations: 54.53 kB / 378.7 MB, free: 11.23 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.814e-05/0.1065, allocations: 19.81 kB / 378.7 MB, free: 11.21 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003612/0.1069, allocations: 230.6 kB / 378.9 MB, free: 10.94 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.884e-05/0.1069, allocations: 19.98 kB / 378.9 MB, free: 10.92 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.52e-05/0.107, allocations: 19.94 kB / 378.9 MB, free: 10.9 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007837/0.1078, allocations: 239.2 kB / 379.2 MB, free: 10.66 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.1078, allocations: 0 / 379.2 MB, free: 10.66 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.637e-05/0.1079, allocations: 8 kB / 379.2 MB, free: 10.65 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.1079, allocations: 11.98 kB / 379.2 MB, free: 10.64 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008489/0.1088, allocations: 203.8 kB / 379.4 MB, free: 10.44 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001639/0.1104, allocations: 0.6874 MB / 380.1 MB, free: 9.695 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009447/0.1114, allocations: 214.5 kB / 380.3 MB, free: 9.477 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.3e-05/0.1114, allocations: 3.984 kB / 380.3 MB, free: 9.473 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006006/0.1121, allocations: 171.5 kB / 380.5 MB, free: 9.293 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 2.745e-06/0.1121, allocations: 0 / 380.5 MB, free: 9.293 MB / 282.7 MB Notification: Performance of matching and sorting (n=26): time 0.004132/0.1162, allocations: 1.208 MB / 381.7 MB, free: 7.973 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.751e-05/0.1163, allocations: 59.34 kB / 381.7 MB, free: 7.902 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002834/0.1166, allocations: 198.8 kB / 381.9 MB, free: 7.699 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.267e-05/0.1167, allocations: 37.7 kB / 382 MB, free: 7.656 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001339/0.1168, allocations: 194.8 kB / 382.1 MB, free: 7.465 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.1169, allocations: 90.73 kB / 382.2 MB, free: 7.375 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.939e-05/0.117, allocations: 8 kB / 382.2 MB, free: 7.367 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001449/0.1171, allocations: 326.8 kB / 382.6 MB, free: 7.039 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004812/0.1176, allocations: 112.3 kB / 382.7 MB, free: 6.926 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005375/0.1182, allocations: 148.3 kB / 382.8 MB, free: 6.77 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004902/0.1187, allocations: 139.1 kB / 383 MB, free: 6.629 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.1187, allocations: 0 / 383 MB, free: 6.629 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001443/0.1202, allocations: 405.4 kB / 383.3 MB, free: 6.219 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.272e-05/0.1202, allocations: 37.69 kB / 383.4 MB, free: 6.176 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.594e-06/0.1203, allocations: 0 / 383.4 MB, free: 6.176 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003544/0.1206, allocations: 68.86 kB / 383.5 MB, free: 6.105 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004077/0.121, allocations: 59.94 kB / 383.5 MB, free: 6.047 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007403/0.1218, allocations: 0.6147 MB / 384.1 MB, free: 5.406 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005333/0.1224, allocations: 44.06 kB / 384.2 MB, free: 5.363 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.474e-05/0.1224, allocations: 12 kB / 384.2 MB, free: 5.352 MB / 282.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): 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.000238/0.1227, allocations: 145.9 kB / 384.3 MB, free: 5.199 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.495e-05/0.1228, allocations: 15.81 kB / 384.3 MB, free: 5.184 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.694e-05/0.1228, allocations: 25.88 kB / 384.4 MB, free: 5.156 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.3e-06/0.1229, allocations: 4 kB / 384.4 MB, free: 5.152 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.1229, allocations: 0 / 384.4 MB, free: 5.152 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/0.1229, allocations: 3.984 kB / 384.4 MB, free: 5.148 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001858/0.1248, allocations: 0.6942 MB / 385.1 MB, free: 4.395 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.666e-06/0.1248, allocations: 8 kB / 385.1 MB, free: 4.387 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004351/0.1253, allocations: 51.84 kB / 385.1 MB, free: 4.336 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003023/0.1256, allocations: 68.81 kB / 385.2 MB, free: 4.266 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.043e-05/0.1256, allocations: 7.984 kB / 385.2 MB, free: 4.258 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007338/0.1264, allocations: 0.6072 MB / 385.8 MB, free: 3.625 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.1264, allocations: 0 / 385.8 MB, free: 3.625 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001724/0.1281, allocations: 0.5271 MB / 386.3 MB, free: 3.078 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001644/0.1283, allocations: 104.9 kB / 386.4 MB, free: 2.957 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.326e-05/0.1284, allocations: 7.953 kB / 386.4 MB, free: 2.949 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004517/0.1289, allocations: 43.97 kB / 386.5 MB, free: 2.906 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001695/0.1291, allocations: 39.86 kB / 386.5 MB, free: 2.867 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.433e-05/0.1291, allocations: 8 kB / 386.5 MB, free: 2.859 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002065/0.1293, allocations: 139.2 kB / 386.7 MB, free: 2.723 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.1293, allocations: 0 / 386.7 MB, free: 2.723 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005566/0.1299, allocations: 76 kB / 386.7 MB, free: 2.648 MB / 282.7 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.002471/0.1324, allocations: 1.077 MB / 387.8 MB, free: 1.543 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001382/0.1338, allocations: 343.1 kB / 388.2 MB, free: 1.195 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.1339, allocations: 0 / 388.2 MB, free: 1.195 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007152/0.1346, allocations: 151.9 kB / 388.3 MB, free: 1.047 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005406/0.1352, allocations: 37.22 kB / 388.3 MB, free: 1.012 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3433/0.4786, allocations: 2.211 MB / 390.6 MB, free: 20.27 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002461/0.4789, allocations: 0.7449 MB / 391.3 MB, free: 19.57 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002124/0.4791, allocations: 63.92 kB / 391.4 MB, free: 19.57 MB / 282.7 MB Notification: Performance of SimCode: time 1.973e-06/0.4791, allocations: 4.906 kB / 391.4 MB, free: 19.57 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.963/3.442, allocations: 4.59 MB / 396 MB, free: 19.36 MB / 282.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