Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007454/0.007453, allocations: 104.5 kB / 15.73 MB, free: 6.043 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.001159/0.001159, allocations: 192.1 kB / 16.67 MB, free: 5.973 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.577/1.577, allocations: 205.1 MB / 222.5 MB, free: 4.516 MB / 174.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.001227/0.001227, allocations: 46.28 kB / 326.5 MB, free: 14.29 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09788/0.09911, allocations: 46.63 MB / 373.2 MB, free: 1.355 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003638/0.1028, allocations: 2.201 MB / 375.4 MB, free: 15.14 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001395/0.1042, allocations: 0.7369 MB / 376.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.1044, allocations: 4 kB / 376.1 MB, free: 14.39 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002122/0.1046, allocations: 35.66 kB / 376.1 MB, free: 14.35 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002185/0.1048, allocations: 67.47 kB / 376.2 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003397/0.1052, allocations: 99.75 kB / 376.3 MB, free: 14.19 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002968/0.1055, allocations: 263.4 kB / 376.6 MB, free: 13.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002057/0.1057, allocations: 76.27 kB / 376.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000159/0.1059, allocations: 103.6 kB / 376.7 MB, free: 13.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001946/0.1061, allocations: 119.5 kB / 376.8 MB, free: 13.64 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.738e-05/0.1061, allocations: 23.94 kB / 376.9 MB, free: 13.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001394/0.1063, allocations: 71.94 kB / 376.9 MB, free: 13.54 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.836e-05/0.1064, allocations: 43.84 kB / 377 MB, free: 13.5 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.1065, allocations: 119.4 kB / 377.1 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003245/0.1068, allocations: 267.1 kB / 377.4 MB, free: 13.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.816e-06/0.1068, allocations: 0 / 377.4 MB, free: 13.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.605e-06/0.1068, allocations: 0 / 377.4 MB, free: 13.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.1068, allocations: 4 kB / 377.4 MB, free: 13.12 MB / 318.1 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.0009189/0.1078, allocations: 0.5185 MB / 377.9 MB, free: 12.55 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.1078, allocations: 8.031 kB / 377.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.363e-05/0.1079, allocations: 24.66 kB / 377.9 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004171/0.1083, allocations: 239.8 kB / 378.2 MB, free: 12.25 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.99e-05/0.1084, allocations: 16.81 kB / 378.2 MB, free: 12.23 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-05/0.1084, allocations: 20.38 kB / 378.2 MB, free: 12.21 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005076/0.109, allocations: 230 kB / 378.4 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.756e-05/0.109, allocations: 0 / 378.4 MB, free: 11.97 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.609e-05/0.109, allocations: 7.938 kB / 378.4 MB, free: 11.96 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.347e-06/0.109, allocations: 11.94 kB / 378.4 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003419/0.1094, allocations: 161 kB / 378.6 MB, free: 11.79 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001281/0.1107, allocations: 0.7719 MB / 379.4 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003893/0.1111, allocations: 130.5 kB / 379.5 MB, free: 10.82 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001431/0.1112, allocations: 72.83 kB / 379.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.134e-05/0.1113, allocations: 0 / 379.6 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.171e-05/0.1113, allocations: 38.5 kB / 379.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.483e-06/0.1113, allocations: 0 / 379.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.002199/0.1135, allocations: 0.9906 MB / 380.6 MB, free: 9.594 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.9e-05/0.1136, allocations: 51.41 kB / 380.6 MB, free: 9.531 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002142/0.1138, allocations: 207.4 kB / 380.8 MB, free: 9.32 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.403e-05/0.1138, allocations: 29.7 kB / 380.9 MB, free: 9.285 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.1139, allocations: 144.1 kB / 381 MB, free: 9.137 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.375e-05/0.114, allocations: 70.94 kB / 381.1 MB, free: 9.066 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.118e-05/0.1141, allocations: 57.7 kB / 381.1 MB, free: 9.004 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.1142, allocations: 334.8 kB / 381.5 MB, free: 8.668 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.1144, allocations: 75.97 kB / 381.5 MB, free: 8.594 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002238/0.1146, allocations: 119.6 kB / 381.7 MB, free: 8.465 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002865/0.1149, allocations: 176.7 kB / 381.8 MB, free: 8.281 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.1149, allocations: 0 / 381.8 MB, free: 8.281 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004646/0.1154, allocations: 291.7 kB / 382.1 MB, free: 7.988 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.1154, allocations: 8 kB / 382.1 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.1154, allocations: 0 / 382.1 MB, free: 7.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002391/0.1157, allocations: 72.88 kB / 382.2 MB, free: 7.906 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001725/0.1158, allocations: 35.98 kB / 382.2 MB, free: 7.871 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005395/0.1164, allocations: 0.6225 MB / 382.8 MB, free: 7.223 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001881/0.1166, allocations: 20.02 kB / 382.9 MB, free: 7.203 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.952e-05/0.1166, allocations: 8 kB / 382.9 MB, free: 7.195 MB / 318.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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001515/0.1168, allocations: 141.8 kB / 383 MB, free: 7.047 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.007e-05/0.1168, allocations: 23.72 kB / 383 MB, free: 7.023 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.371e-05/0.1169, allocations: 21.88 kB / 383.1 MB, free: 7.004 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.1169, allocations: 3.938 kB / 383.1 MB, free: 7 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.1169, allocations: 0 / 383.1 MB, free: 7 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.1169, allocations: 7.984 kB / 383.1 MB, free: 6.992 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009097/0.1179, allocations: 0.5959 MB / 383.7 MB, free: 6.332 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1179, allocations: 0 / 383.7 MB, free: 6.332 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001562/0.118, allocations: 27.98 kB / 383.7 MB, free: 6.305 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001744/0.1182, allocations: 72.75 kB / 383.8 MB, free: 6.23 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.1182, allocations: 4 kB / 383.8 MB, free: 6.227 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004796/0.1187, allocations: 0.6264 MB / 384.4 MB, free: 5.574 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.1187, allocations: 0 / 384.4 MB, free: 5.574 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006466/0.1194, allocations: 421.7 kB / 384.8 MB, free: 5.137 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.1195, allocations: 108.9 kB / 384.9 MB, free: 5.012 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.797e-05/0.1196, allocations: 4 kB / 384.9 MB, free: 5.008 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001838/0.1198, allocations: 23.97 kB / 384.9 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.1199, allocations: 19.97 kB / 385 MB, free: 4.965 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.225e-05/0.1199, allocations: 7.938 kB / 385 MB, free: 4.957 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001534/0.12, allocations: 160.2 kB / 385.1 MB, free: 4.801 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.12, allocations: 0 / 385.1 MB, free: 4.801 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003562/0.1204, allocations: 75.92 kB / 385.2 MB, free: 4.727 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002226/0.1206, allocations: 119.5 kB / 385.3 MB, free: 4.598 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005184/0.1212, allocations: 195.8 kB / 385.5 MB, free: 4.406 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1212, allocations: 0 / 385.5 MB, free: 4.406 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002363/0.1214, allocations: 104 kB / 385.6 MB, free: 4.305 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003889/0.1218, allocations: 36.44 kB / 385.6 MB, free: 4.27 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001279/0.1231, allocations: 0.6607 MB / 386.3 MB, free: 3.574 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002889/0.1234, allocations: 0.744 MB / 387 MB, free: 2.805 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.019e-05/0.1235, allocations: 17.95 kB / 387.1 MB, free: 2.789 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.816e-05/0.1236, allocations: 23.44 kB / 387.1 MB, free: 2.766 MB / 318.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1236, allocations: 0 / 387.1 MB, free: 2.766 MB / 318.1 MB Notification: Performance of Templates: time 0.006901/0.1305, allocations: 3.223 MB / 390.3 MB, free: 15.54 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1)