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.0009261/0.0009261, allocations: 99.94 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.318/1.318, allocations: 223.2 MB / 238.9 MB, free: 5.48 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.001061/0.001061, allocations: 181 kB / 290.2 MB, free: 2.172 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.0327/0.0327, allocations: 8.775 MB / 350 MB, free: 4.676 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004446/0.0004447, allocations: 9.375 kB / 413.2 MB, free: 43.01 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09597/0.09643, allocations: 52.56 MB / 465.7 MB, free: 13.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.002399/0.09887, allocations: 1.656 MB / 467.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001421/0.1003, allocations: 0.8932 MB / 468.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.95e-05/0.1004, allocations: 3.938 kB / 468.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002915/0.1007, allocations: 107.7 kB / 468.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002307/0.101, allocations: 111.7 kB / 468.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002826/0.1013, allocations: 113.9 kB / 468.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002156/0.1015, allocations: 143.7 kB / 468.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.1016, allocations: 41.64 kB / 468.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.1017, allocations: 79.73 kB / 468.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000149/0.1019, allocations: 91.66 kB / 468.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.965e-05/0.1019, allocations: 8 kB / 469 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.141e-05/0.102, allocations: 31.88 kB / 469 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.225e-05/0.1021, allocations: 39.84 kB / 469 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.224e-05/0.1021, allocations: 57.58 kB / 469.1 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000203/0.1023, allocations: 171.8 kB / 469.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.926e-06/0.1023, allocations: 0 / 469.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.1023, allocations: 0 / 469.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.1023, allocations: 0 / 469.2 MB, free: 9.863 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.0006949/0.103, allocations: 486.6 kB / 469.7 MB, free: 9.336 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.1031, allocations: 8.031 kB / 469.7 MB, free: 9.328 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.618e-05/0.1031, allocations: 46.45 kB / 469.8 MB, free: 9.273 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.496e-05/0.1032, allocations: 27.7 kB / 469.8 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002671/0.1035, allocations: 235 kB / 470 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.1035, allocations: 12.17 kB / 470 MB, free: 8.965 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.123e-05/0.1035, allocations: 15.91 kB / 470.1 MB, free: 8.949 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000234/0.1038, allocations: 141.4 kB / 470.2 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.1038, allocations: 0 / 470.2 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.173e-05/0.1038, allocations: 4 kB / 470.2 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.675e-06/0.1038, allocations: 7.953 kB / 470.2 MB, free: 8.789 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001453/0.104, allocations: 64.67 kB / 470.3 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007517/0.1048, allocations: 0.6187 MB / 470.9 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002078/0.105, allocations: 106.6 kB / 471 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.974e-05/0.105, allocations: 0 / 471 MB, free: 7.93 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001984/0.1052, allocations: 79.38 kB / 471.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.1052, allocations: 0 / 471.1 MB, free: 7.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003281/0.1056, allocations: 149.6 kB / 471.2 MB, free: 7.688 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.049e-05/0.1056, allocations: 55.36 kB / 471.3 MB, free: 7.621 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002551/0.1059, allocations: 272.1 kB / 471.5 MB, free: 7.344 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.1059, allocations: 25.7 kB / 471.6 MB, free: 7.312 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.023e-05/0.106, allocations: 144.5 kB / 471.7 MB, free: 7.164 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.247e-05/0.106, allocations: 39.44 kB / 471.7 MB, free: 7.125 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.784e-06/0.106, allocations: 4 kB / 471.7 MB, free: 7.121 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000111/0.1062, allocations: 334.8 kB / 472.1 MB, free: 6.785 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.395e-05/0.1062, allocations: 31.92 kB / 472.1 MB, free: 6.754 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.335e-05/0.1063, allocations: 72.16 kB / 472.2 MB, free: 6.668 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.149e-05/0.1064, allocations: 35.98 kB / 472.2 MB, free: 6.633 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.1064, allocations: 4 kB / 472.2 MB, free: 6.629 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002352/0.1067, allocations: 145.3 kB / 472.4 MB, free: 6.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.384e-05/0.1067, allocations: 10 kB / 472.4 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.539e-06/0.1067, allocations: 0 / 472.4 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/0.1067, allocations: 4 kB / 472.4 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000145/0.1069, allocations: 23.98 kB / 472.4 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.906e-06/0.1069, allocations: 11.95 kB / 472.4 MB, free: 6.434 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.637e-05/0.107, allocations: 15.89 kB / 472.4 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.107, allocations: 4 kB / 472.4 MB, free: 6.414 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.0001177/0.1071, allocations: 145.8 kB / 472.6 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.165e-05/0.1071, allocations: 15.81 kB / 472.6 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.942e-05/0.1072, allocations: 17.41 kB / 472.6 MB, free: 6.23 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.1072, allocations: 4 kB / 472.6 MB, free: 6.227 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.1072, allocations: 3.984 kB / 472.6 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.822e-06/0.1072, allocations: 3.953 kB / 472.6 MB, free: 6.219 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001986/0.1074, allocations: 241.5 kB / 472.8 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1074, allocations: 0 / 472.8 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001022/0.1076, allocations: 15.98 kB / 472.9 MB, free: 5.918 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.1076, allocations: 4 kB / 472.9 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.1076, allocations: 0 / 472.9 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.1076, allocations: 7.875 kB / 472.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.1076, allocations: 0 / 472.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003224/0.1079, allocations: 196.7 kB / 473.1 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.807e-05/0.108, allocations: 96.94 kB / 473.2 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.516e-05/0.108, allocations: 0 / 473.2 MB, free: 5.582 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.315e-05/0.1081, allocations: 4 kB / 473.2 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.406e-05/0.1081, allocations: 11.98 kB / 473.2 MB, free: 5.566 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.1082, allocations: 4 kB / 473.2 MB, free: 5.562 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001684/0.1083, allocations: 205.6 kB / 473.4 MB, free: 5.363 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1083, allocations: 0 / 473.4 MB, free: 5.363 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00024/0.1086, allocations: 43.84 kB / 473.4 MB, free: 5.32 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.001479/0.1101, allocations: 1.031 MB / 474.5 MB, free: 4.426 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002145/0.1103, allocations: 91.78 kB / 474.5 MB, free: 4.336 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.1103, allocations: 0 / 474.5 MB, free: 4.336 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.38e-05/0.1104, allocations: 39.97 kB / 474.6 MB, free: 4.297 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002526/0.1107, allocations: 33.06 kB / 474.6 MB, free: 4.266 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001963/0.1126, allocations: 1.853 MB / 476.5 MB, free: 2.352 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003229/0.113, allocations: 0.7477 MB / 477.2 MB, free: 1.578 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.463e-05/0.1131, allocations: 17.42 kB / 477.2 MB, free: 1.555 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.288e-05/0.1132, allocations: 59.41 kB / 477.3 MB, free: 1.5 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1132, allocations: 0 / 477.3 MB, free: 1.5 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01439/0.1276, allocations: 3.808 MB / 481.1 MB, free: 13.81 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002125/0.1278, allocations: 206.8 kB / 481.3 MB, free: 13.57 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.666/1.794, allocations: 3.938 kB / 481.3 MB, free: 13.56 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: