Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.Drive.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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(HanserModelica.Rotational.Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Rotational.Drive") translateModel(HanserModelica.Rotational.Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Rotational.Drive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 99.86 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.4/1.4, allocations: 223.2 MB / 238.9 MB, free: 5.637 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001376/0.001376, allocations: 185 kB / 290.2 MB, free: 2.328 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0324/0.0324, allocations: 8.807 MB / 350.1 MB, free: 4.766 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003987/0.0003988, allocations: 10.28 kB / 413.1 MB, free: 43.06 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1097, allocations: 52.56 MB / 465.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.002505/0.1122, allocations: 1.656 MB / 467.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001726/0.114, allocations: 0.8893 MB / 468.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002084/0.1142, allocations: 4 kB / 468.2 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004483/0.1147, allocations: 107.7 kB / 468.3 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004452/0.1152, allocations: 107.6 kB / 468.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005426/0.1157, allocations: 115.7 kB / 468.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004266/0.1162, allocations: 147.7 kB / 468.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.1163, allocations: 37.59 kB / 468.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000177/0.1165, allocations: 79.69 kB / 468.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001925/0.1167, allocations: 91.66 kB / 468.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.202e-05/0.1167, allocations: 4 kB / 468.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001408/0.1169, allocations: 35.92 kB / 468.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.395e-05/0.117, allocations: 43.89 kB / 469 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.756e-05/0.117, allocations: 57.58 kB / 469 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002657/0.1173, allocations: 163.9 kB / 469.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.1173, allocations: 0 / 469.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1173, allocations: 0 / 469.2 MB, free: 10.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.662e-06/0.1174, allocations: 0 / 469.2 MB, free: 10.07 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0007764/0.1181, allocations: 486.5 kB / 469.6 MB, free: 9.539 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.1182, allocations: 12.03 kB / 469.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.178e-05/0.1183, allocations: 23.77 kB / 469.7 MB, free: 9.504 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003322/0.1186, allocations: 234.9 kB / 469.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.101e-05/0.1186, allocations: 12.17 kB / 469.9 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.693e-05/0.1187, allocations: 15.98 kB / 469.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002824/0.119, allocations: 133.5 kB / 470.1 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.119, allocations: 3.906 kB / 470.1 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.089e-05/0.119, allocations: 12 kB / 470.1 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.119, allocations: 3.953 kB / 470.1 MB, free: 9.047 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001681/0.1192, allocations: 80.59 kB / 470.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009048/0.1201, allocations: 0.6148 MB / 470.8 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002288/0.1204, allocations: 98.58 kB / 470.9 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.931e-05/0.1204, allocations: 8.031 kB / 470.9 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002172/0.1206, allocations: 79.38 kB / 471 MB, free: 8.086 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.493e-06/0.1206, allocations: 0 / 471 MB, free: 8.086 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003775/0.121, allocations: 141.9 kB / 471.1 MB, free: 7.941 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.1211, allocations: 63.36 kB / 471.2 MB, free: 7.867 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002557/0.1214, allocations: 268.1 kB / 471.4 MB, free: 7.594 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.822e-05/0.1214, allocations: 29.8 kB / 471.5 MB, free: 7.559 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000111/0.1215, allocations: 144 kB / 471.6 MB, free: 7.41 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.626e-05/0.1215, allocations: 35.55 kB / 471.6 MB, free: 7.375 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.77e-06/0.1216, allocations: 0 / 471.6 MB, free: 7.375 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.1217, allocations: 326.8 kB / 471.9 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.324e-05/0.1218, allocations: 35.92 kB / 472 MB, free: 7.012 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001479/0.1219, allocations: 74.59 kB / 472.1 MB, free: 6.926 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.075e-05/0.122, allocations: 36 kB / 472.1 MB, free: 6.891 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.122, allocations: 0 / 472.1 MB, free: 6.891 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002631/0.1223, allocations: 157.2 kB / 472.2 MB, free: 6.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.1223, allocations: 4 kB / 472.2 MB, free: 6.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.574e-05/0.1224, allocations: 4 kB / 472.3 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.521e-05/0.1224, allocations: 0 / 472.3 MB, free: 6.723 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.1226, allocations: 27.98 kB / 472.3 MB, free: 6.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.1226, allocations: 4 kB / 472.3 MB, free: 6.691 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.173e-05/0.1227, allocations: 11.86 kB / 472.3 MB, free: 6.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.1227, allocations: 8 kB / 472.3 MB, free: 6.672 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001288/0.1228, allocations: 137.8 kB / 472.4 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.538e-05/0.1228, allocations: 19.88 kB / 472.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.002e-05/0.1229, allocations: 25.39 kB / 472.5 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.1229, allocations: 0 / 472.5 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.1229, allocations: 0 / 472.5 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.1229, allocations: 4 kB / 472.5 MB, free: 6.48 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002742/0.1232, allocations: 245.5 kB / 472.7 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.1232, allocations: 0 / 472.7 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.1233, allocations: 19.98 kB / 472.7 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.1234, allocations: 0 / 472.7 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.1234, allocations: 11.94 kB / 472.8 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.1234, allocations: 7.938 kB / 472.8 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1234, allocations: 0 / 472.8 MB, free: 6.152 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000347/0.1238, allocations: 188.7 kB / 472.9 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.427e-05/0.1238, allocations: 92.95 kB / 473 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.904e-05/0.1239, allocations: 4 kB / 473 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.464e-05/0.1239, allocations: 7.984 kB / 473.1 MB, free: 5.828 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.949e-05/0.124, allocations: 4 kB / 473.1 MB, free: 5.824 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.145e-05/0.124, allocations: 16.14 kB / 473.1 MB, free: 5.809 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001743/0.1242, allocations: 201.5 kB / 473.3 MB, free: 5.613 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1242, allocations: 0 / 473.3 MB, free: 5.613 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000262/0.1245, allocations: 43.92 kB / 473.3 MB, free: 5.57 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inertia.w,load.phi) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008886/0.1254, allocations: 399.8 kB / 473.7 MB, free: 5.332 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002309/0.1256, allocations: 87.78 kB / 473.8 MB, free: 5.246 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1256, allocations: 4.188 kB / 473.8 MB, free: 5.242 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.981e-05/0.1257, allocations: 43.98 kB / 473.8 MB, free: 5.199 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002697/0.126, allocations: 29.02 kB / 473.9 MB, free: 5.172 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000991/0.127, allocations: 0.588 MB / 474.5 MB, free: 4.555 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003719/0.1274, allocations: 0.7439 MB / 475.2 MB, free: 3.785 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.805e-05/0.1275, allocations: 25.41 kB / 475.2 MB, free: 3.758 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.314e-05/0.1275, allocations: 15.44 kB / 475.2 MB, free: 3.746 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1275, allocations: 0 / 475.2 MB, free: 3.746 MB / 302.1 MB Notification: Performance of Templates: time 0.006195/0.1337, allocations: 1.857 MB / 477.1 MB, free: 1.914 MB / 302.1 MB make -j1 -f HanserModelica_HanserModelica.Rotational.Drive.makefile Environment - environmentSimulation: (rm -f HanserModelica_HanserModelica.Rotational.Drive.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.Drive.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.Drive.pipe >> ../files/HanserModelica_HanserModelica.Rotational.Drive.sim & ./HanserModelica_HanserModelica.Rotational.Drive -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Rotational.Drive.pipe 2>&1) Environment - environmentSimulation: