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/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/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: "" <> buildModelFMU(HanserModelica.Rotational.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.Drive,fileNamePrefix="HanserModelica_HanserModelica_Rotational_Drive",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.0008399/0.00084, allocations: 91.61 kB / 15.06 MB, free: 1.098 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.327/1.327, allocations: 223.3 MB / 239 MB, free: 5.582 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.001123/0.001123, allocations: 180.5 kB / 290.3 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03254/0.03254, allocations: 8.775 MB / 350.1 MB, free: 4.688 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006683/0.0006686, allocations: 11.12 kB / 413.3 MB, free: 42.99 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1076/0.1083, allocations: 52.56 MB / 465.8 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.002923/0.1113, allocations: 1.697 MB / 467.5 MB, free: 11.7 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001729/0.113, allocations: 0.8971 MB / 468.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.1132, allocations: 4 kB / 468.4 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000352/0.1136, allocations: 115.6 kB / 468.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002827/0.1139, allocations: 91.62 kB / 468.6 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003773/0.1142, allocations: 117.4 kB / 468.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000309/0.1146, allocations: 191.3 kB / 468.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001434/0.1147, allocations: 25.67 kB / 469 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002019/0.1149, allocations: 87.67 kB / 469 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000151/0.1151, allocations: 95.66 kB / 469.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.186e-05/0.1151, allocations: 4 kB / 469.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001205/0.1152, allocations: 47.92 kB / 469.2 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.768e-05/0.1153, allocations: 31.91 kB / 469.2 MB, free: 10 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.212e-05/0.1154, allocations: 65.58 kB / 469.3 MB, free: 9.934 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002141/0.1156, allocations: 163.9 kB / 469.4 MB, free: 9.773 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.1156, allocations: 0 / 469.4 MB, free: 9.773 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1156, allocations: 0 / 469.4 MB, free: 9.773 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.1156, allocations: 0 / 469.4 MB, free: 9.773 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.0006629/0.1163, allocations: 486.5 kB / 469.9 MB, free: 9.246 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.1163, allocations: 12.03 kB / 469.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.458e-05/0.1164, allocations: 46.5 kB / 470 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.775e-05/0.1165, allocations: 23.72 kB / 470 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003632/0.1168, allocations: 234.9 kB / 470.2 MB, free: 8.887 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.1169, allocations: 8.234 kB / 470.2 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.342e-05/0.1169, allocations: 19.89 kB / 470.3 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003383/0.1172, allocations: 141.4 kB / 470.4 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.1173, allocations: 0 / 470.4 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.1173, allocations: 8 kB / 470.4 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.1173, allocations: 7.953 kB / 470.4 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001582/0.1175, allocations: 76.53 kB / 470.5 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009436/0.1184, allocations: 0.6148 MB / 471.1 MB, free: 7.941 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002451/0.1187, allocations: 94.58 kB / 471.2 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.578e-05/0.1188, allocations: 32.89 kB / 471.2 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.968e-05/0.1188, allocations: 0 / 471.2 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002304/0.119, allocations: 83.36 kB / 471.3 MB, free: 7.711 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.583e-06/0.1191, allocations: 4 kB / 471.3 MB, free: 7.707 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003855/0.1194, allocations: 157.3 kB / 471.5 MB, free: 7.547 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.206e-05/0.1195, allocations: 55.34 kB / 471.5 MB, free: 7.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003451/0.1199, allocations: 268.1 kB / 471.8 MB, free: 7.207 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.079e-05/0.12, allocations: 29.7 kB / 471.8 MB, free: 7.172 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.1201, allocations: 140.1 kB / 471.9 MB, free: 7.027 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.185e-05/0.1201, allocations: 39.45 kB / 472 MB, free: 6.988 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.851e-06/0.1201, allocations: 3.938 kB / 472 MB, free: 6.984 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001424/0.1203, allocations: 334.8 kB / 472.3 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.089e-05/0.1204, allocations: 31.98 kB / 472.3 MB, free: 6.617 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.805e-05/0.1205, allocations: 70.17 kB / 472.4 MB, free: 6.535 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.237e-05/0.1206, allocations: 32 kB / 472.4 MB, free: 6.504 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.1206, allocations: 4 kB / 472.4 MB, free: 6.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002673/0.1209, allocations: 149.3 kB / 472.6 MB, free: 6.348 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.1209, allocations: 5.719 kB / 472.6 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.1209, allocations: 0 / 472.6 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.1209, allocations: 4 kB / 472.6 MB, free: 6.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001511/0.1211, allocations: 35.92 kB / 472.6 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.1211, allocations: 7.938 kB / 472.6 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.177e-05/0.1212, allocations: 15.97 kB / 472.7 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.1212, allocations: 4.375 kB / 472.7 MB, free: 6.277 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.0001472/0.1213, allocations: 142.5 kB / 472.8 MB, free: 6.129 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.692e-05/0.1214, allocations: 15.81 kB / 472.8 MB, free: 6.113 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.478e-05/0.1214, allocations: 25.39 kB / 472.8 MB, free: 6.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.1215, allocations: 3.938 kB / 472.8 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1215, allocations: 0 / 472.8 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.1215, allocations: 3.953 kB / 472.8 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000236/0.1217, allocations: 241.5 kB / 473.1 MB, free: 5.797 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1217, allocations: 0 / 473.1 MB, free: 5.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001118/0.1218, allocations: 23.94 kB / 473.1 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.1219, allocations: 3.984 kB / 473.1 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.1219, allocations: 7.984 kB / 473.1 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.1219, allocations: 0 / 473.1 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1219, allocations: 0 / 473.1 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003435/0.1222, allocations: 196.7 kB / 473.3 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.173e-05/0.1223, allocations: 88.95 kB / 473.4 MB, free: 5.445 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.93e-05/0.1224, allocations: 8.062 kB / 473.4 MB, free: 5.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.187e-05/0.1224, allocations: 7.984 kB / 473.4 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.158e-05/0.1225, allocations: 4 kB / 473.4 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.788e-05/0.1225, allocations: 4 kB / 473.4 MB, free: 5.422 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001971/0.1227, allocations: 201.6 kB / 473.6 MB, free: 5.227 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1227, allocations: 4 kB / 473.6 MB, free: 5.223 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002638/0.123, allocations: 47.83 kB / 473.7 MB, free: 5.176 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.001444/0.1244, allocations: 1.024 MB / 474.7 MB, free: 4.285 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002208/0.1247, allocations: 87.78 kB / 474.8 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1247, allocations: 0 / 474.8 MB, free: 4.199 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.588e-05/0.1248, allocations: 39.98 kB / 474.8 MB, free: 4.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003113/0.1251, allocations: 44.81 kB / 474.9 MB, free: 4.121 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002137/0.1272, allocations: 1.268 MB / 476.1 MB, free: 2.797 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004609/0.1277, allocations: 0.74 MB / 476.9 MB, free: 2.031 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.543e-05/0.1278, allocations: 13.42 kB / 476.9 MB, free: 2.012 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.803e-05/0.1279, allocations: 67.41 kB / 476.9 MB, free: 1.949 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1279, allocations: 0 / 476.9 MB, free: 1.949 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0159/0.1438, allocations: 3.816 MB / 480.8 MB, free: 14.26 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001809/0.144, allocations: 217.4 kB / 481 MB, free: 14 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.759/1.903, allocations: 0 / 481 MB, free: 14 MB / 318.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Rotational_Drive_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Rotational_Drive.fmu > HanserModelica_HanserModelica.Rotational.Drive.pipe 2>&1) Environment - environmentSimulation: