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: "" <> 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.001665/0.001665, allocations: 108 kB / 15.61 MB, free: 148 kB / 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: 222.9 MB / 239.3 MB, free: 4.613 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.001454/0.001454, allocations: 187.6 kB / 289.6 MB, free: 2.336 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03491/0.03491, allocations: 8.799 MB / 348.5 MB, free: 4.727 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001719/0.001719, allocations: 80.7 kB / 411.2 MB, free: 41.96 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09122/0.09297, allocations: 51.57 MB / 462.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.00336/0.09637, allocations: 2.028 MB / 464.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001551/0.09794, allocations: 0.9703 MB / 465.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001235/0.09808, allocations: 4 kB / 465.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003924/0.09848, allocations: 119.5 kB / 465.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000307/0.09883, allocations: 115.4 kB / 466 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003827/0.09923, allocations: 137.6 kB / 466.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002682/0.0995, allocations: 211.3 kB / 466.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001554/0.09967, allocations: 49.64 kB / 466.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000151/0.09983, allocations: 99.56 kB / 466.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002034/0.1, allocations: 111.6 kB / 466.6 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.166e-05/0.1001, allocations: 12 kB / 466.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001237/0.1002, allocations: 47.98 kB / 466.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.911e-05/0.1003, allocations: 39.84 kB / 466.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.1004, allocations: 95.41 kB / 466.8 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003171/0.1007, allocations: 235.4 kB / 467 MB, free: 10.02 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1007, allocations: 4 kB / 467 MB, free: 10.01 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.62e-07/0.1007, allocations: 4 kB / 467 MB, free: 10.01 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.1008, allocations: 0 / 467 MB, free: 10.01 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.0007103/0.1015, allocations: 498.7 kB / 467.5 MB, free: 9.469 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.1015, allocations: 12.03 kB / 467.5 MB, free: 9.457 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.346e-05/0.1016, allocations: 42.75 kB / 467.6 MB, free: 9.406 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.922e-05/0.1016, allocations: 24.64 kB / 467.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002562/0.1019, allocations: 251.8 kB / 467.8 MB, free: 9.098 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.1019, allocations: 8.609 kB / 467.8 MB, free: 9.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.375e-05/0.102, allocations: 19.94 kB / 467.9 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002462/0.1022, allocations: 141.4 kB / 468 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.1022, allocations: 0 / 468 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.723e-05/0.1023, allocations: 4 kB / 468 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.1023, allocations: 4 kB / 468 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.1025, allocations: 68.61 kB / 468.1 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008035/0.1033, allocations: 0.6264 MB / 468.7 MB, free: 8.156 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000239/0.1035, allocations: 94.61 kB / 468.8 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.591e-05/0.1036, allocations: 36.84 kB / 468.8 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.404e-05/0.1036, allocations: 0 / 468.8 MB, free: 8.016 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002871/0.1039, allocations: 91.25 kB / 468.9 MB, free: 7.914 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.633e-06/0.1039, allocations: 0 / 468.9 MB, free: 7.914 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004089/0.1044, allocations: 145.3 kB / 469 MB, free: 7.766 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.968e-05/0.1044, allocations: 59.39 kB / 469.1 MB, free: 7.695 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000318/0.1047, allocations: 268.1 kB / 469.4 MB, free: 7.422 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.028e-05/0.1048, allocations: 34.08 kB / 469.4 MB, free: 7.383 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.1049, allocations: 140.1 kB / 469.5 MB, free: 7.242 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.992e-05/0.1049, allocations: 31.55 kB / 469.6 MB, free: 7.211 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.637e-05/0.105, allocations: 33.7 kB / 469.6 MB, free: 7.172 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.1052, allocations: 338.7 kB / 469.9 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.219e-05/0.1053, allocations: 27.98 kB / 470 MB, free: 6.805 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001171/0.1054, allocations: 70.52 kB / 470 MB, free: 6.723 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001795/0.1056, allocations: 100.2 kB / 470.1 MB, free: 6.609 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1056, allocations: 0 / 470.1 MB, free: 6.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002822/0.1059, allocations: 149.3 kB / 470.3 MB, free: 6.457 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.1059, allocations: 4 kB / 470.3 MB, free: 6.453 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.1059, allocations: 4 kB / 470.3 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.72e-05/0.1059, allocations: 0 / 470.3 MB, free: 6.449 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.1061, allocations: 31.92 kB / 470.3 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.1061, allocations: 0 / 470.3 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.654e-05/0.1062, allocations: 23.83 kB / 470.3 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.307e-05/0.1062, allocations: 7.984 kB / 470.3 MB, free: 6.387 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 ($PRE.combiTimeTable.nextTimeEvent,$whenCondition1,combiTimeTable.nextTimeEventScaled,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEvent) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001545/0.1064, allocations: 154.5 kB / 470.5 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.829e-05/0.1064, allocations: 15.81 kB / 470.5 MB, free: 6.211 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.291e-05/0.1065, allocations: 21.34 kB / 470.5 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1065, allocations: 0 / 470.5 MB, free: 6.191 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.1065, allocations: 3.984 kB / 470.5 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.1065, allocations: 0 / 470.5 MB, free: 6.188 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002229/0.1067, allocations: 253.4 kB / 470.8 MB, free: 5.891 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1067, allocations: 4 kB / 470.8 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001062/0.1068, allocations: 19.98 kB / 470.8 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.1069, allocations: 0 / 470.8 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.1069, allocations: 0 / 470.8 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.1069, allocations: 8 kB / 470.8 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1069, allocations: 0 / 470.8 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00035/0.1072, allocations: 184.8 kB / 471 MB, free: 5.66 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.688e-05/0.1073, allocations: 92.95 kB / 471.1 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.334e-05/0.1074, allocations: 7.984 kB / 471.1 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.71e-05/0.1074, allocations: 0 / 471.1 MB, free: 5.543 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.397e-05/0.1075, allocations: 7.984 kB / 471.1 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.086e-05/0.1075, allocations: 12.06 kB / 471.1 MB, free: 5.523 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000189/0.1077, allocations: 201.6 kB / 471.3 MB, free: 5.328 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1077, allocations: 0 / 471.3 MB, free: 5.328 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002799/0.108, allocations: 51.92 kB / 471.4 MB, free: 5.277 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00152/0.1095, allocations: 1.034 MB / 472.4 MB, free: 4.375 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002404/0.1098, allocations: 83.91 kB / 472.5 MB, free: 4.293 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1098, allocations: 0 / 472.5 MB, free: 4.293 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.958e-05/0.1099, allocations: 39.92 kB / 472.5 MB, free: 4.254 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003334/0.1102, allocations: 40.22 kB / 472.6 MB, free: 4.219 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002831/0.1131, allocations: 2.099 MB / 474.7 MB, free: 2.012 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005434/0.1136, allocations: 0.7396 MB / 475.4 MB, free: 1.246 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.418e-05/0.1137, allocations: 25.41 kB / 475.4 MB, free: 1.215 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.103e-05/0.1138, allocations: 59.41 kB / 475.5 MB, free: 1.16 MB / 302.1 MB Notification: Performance of SimCode: time 4.51e-07/0.1138, allocations: 0 / 475.5 MB, free: 1.16 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02508/0.1389, allocations: 4.234 MB / 479.7 MB, free: 13 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.589/7.728, allocations: 11.92 kB / 479.7 MB, free: 12.99 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/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)