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.0007736/0.0007737, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.377/1.377, allocations: 223.3 MB / 239.4 MB, free: 5.523 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.001083/0.001083, allocations: 180.5 kB / 290.6 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03338/0.03338, allocations: 8.804 MB / 350.5 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003734/0.0003732, allocations: 10.06 kB / 413.9 MB, free: 42.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09066/0.09105, allocations: 52.56 MB / 466.5 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.Drive): time 0.002485/0.09358, allocations: 1.739 MB / 468.2 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001645/0.09525, allocations: 0.9355 MB / 469.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001298/0.09543, allocations: 4 kB / 469.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004015/0.09584, allocations: 111.7 kB / 469.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002627/0.09611, allocations: 103.5 kB / 469.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003646/0.09649, allocations: 117.9 kB / 469.5 MB, free: 10.03 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002488/0.09675, allocations: 207.3 kB / 469.7 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.09689, allocations: 37.64 kB / 469.7 MB, free: 9.789 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.09702, allocations: 79.64 kB / 469.8 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001633/0.09719, allocations: 115.6 kB / 469.9 MB, free: 9.598 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.138e-05/0.09722, allocations: 4 kB / 469.9 MB, free: 9.594 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001054/0.09733, allocations: 43.98 kB / 470 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.518e-05/0.0974, allocations: 39.84 kB / 470 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.566e-05/0.09751, allocations: 113.2 kB / 470.1 MB, free: 9.395 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002597/0.09777, allocations: 211.5 kB / 470.3 MB, free: 9.188 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.09778, allocations: 3.938 kB / 470.3 MB, free: 9.184 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.09779, allocations: 0 / 470.3 MB, free: 9.184 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.0978, allocations: 0 / 470.3 MB, free: 9.184 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.0007115/0.09852, allocations: 482.8 kB / 470.8 MB, free: 8.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.09857, allocations: 8.031 kB / 470.8 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.666e-05/0.09863, allocations: 46.73 kB / 470.8 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.169e-05/0.09869, allocations: 28.66 kB / 470.9 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002873/0.09899, allocations: 252 kB / 471.1 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.09901, allocations: 8.609 kB / 471.1 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.722e-05/0.09906, allocations: 15.94 kB / 471.1 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003173/0.09938, allocations: 141.4 kB / 471.3 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.0994, allocations: 0 / 471.3 MB, free: 8.113 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.09943, allocations: 4 kB / 471.3 MB, free: 8.109 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.591e-06/0.09944, allocations: 4 kB / 471.3 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001627/0.09961, allocations: 76.59 kB / 471.4 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000862/0.1005, allocations: 0.6185 MB / 472 MB, free: 7.348 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002301/0.1007, allocations: 98.61 kB / 472.1 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.1009, allocations: 36.84 kB / 472.1 MB, free: 7.203 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.933e-05/0.1009, allocations: 4 kB / 472.1 MB, free: 7.199 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002201/0.1011, allocations: 79.38 kB / 472.2 MB, free: 7.109 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 3.467e-06/0.1011, allocations: 0 / 472.2 MB, free: 7.109 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003798/0.1015, allocations: 157.3 kB / 472.3 MB, free: 6.949 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.1016, allocations: 51.41 kB / 472.4 MB, free: 6.887 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000251/0.1018, allocations: 272 kB / 472.7 MB, free: 6.609 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.1019, allocations: 25.7 kB / 472.7 MB, free: 6.578 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.841e-05/0.102, allocations: 144.1 kB / 472.8 MB, free: 6.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.419e-05/0.102, allocations: 31.55 kB / 472.9 MB, free: 6.398 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.073e-05/0.102, allocations: 17.72 kB / 472.9 MB, free: 6.375 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.1022, allocations: 338.8 kB / 473.2 MB, free: 6.035 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.744e-05/0.1023, allocations: 39.92 kB / 473.2 MB, free: 5.996 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.943e-05/0.1024, allocations: 64.27 kB / 473.3 MB, free: 5.918 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001746/0.1025, allocations: 108.2 kB / 473.4 MB, free: 5.797 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1026, allocations: 0 / 473.4 MB, free: 5.797 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002481/0.1028, allocations: 149.6 kB / 473.6 MB, free: 5.645 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.165e-05/0.1028, allocations: 4 kB / 473.6 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.812e-06/0.1028, allocations: 4 kB / 473.6 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.1029, allocations: 0 / 473.6 MB, free: 5.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.103, allocations: 31.92 kB / 473.6 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.173e-06/0.103, allocations: 3.938 kB / 473.6 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.392e-05/0.1031, allocations: 16.11 kB / 473.6 MB, free: 5.586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.1031, allocations: 8 kB / 473.6 MB, free: 5.578 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.0001138/0.1032, allocations: 142.4 kB / 473.8 MB, free: 5.43 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.831e-05/0.1033, allocations: 19.72 kB / 473.8 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.788e-05/0.1034, allocations: 21.41 kB / 473.8 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.415e-06/0.1034, allocations: 0 / 473.8 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.96e-06/0.1034, allocations: 0 / 473.8 MB, free: 5.391 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.1034, allocations: 3.984 kB / 473.8 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000209/0.1036, allocations: 245.5 kB / 474.1 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1036, allocations: 4 kB / 474.1 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000108/0.1037, allocations: 23.92 kB / 474.1 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.1037, allocations: 0 / 474.1 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.483e-05/0.1037, allocations: 4 kB / 474.1 MB, free: 5.066 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.1038, allocations: 4 kB / 474.1 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1038, allocations: 0 / 474.1 MB, free: 5.062 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003432/0.1041, allocations: 184.8 kB / 474.3 MB, free: 4.863 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.851e-05/0.1042, allocations: 105 kB / 474.4 MB, free: 4.742 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.515e-05/0.1042, allocations: 4 kB / 474.4 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.871e-05/0.1043, allocations: 4 kB / 474.4 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.631e-05/0.1043, allocations: 3.984 kB / 474.4 MB, free: 4.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.7e-05/0.1043, allocations: 8 kB / 474.4 MB, free: 4.723 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001889/0.1045, allocations: 205.6 kB / 474.6 MB, free: 4.523 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1045, allocations: 0 / 474.6 MB, free: 4.523 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002686/0.1048, allocations: 43.84 kB / 474.6 MB, free: 4.48 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.001506/0.1063, allocations: 1.027 MB / 475.7 MB, free: 3.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002244/0.1066, allocations: 91.78 kB / 475.7 MB, free: 3.5 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1066, allocations: 0 / 475.7 MB, free: 3.5 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.543e-05/0.1067, allocations: 35.92 kB / 475.8 MB, free: 3.465 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003311/0.107, allocations: 44.64 kB / 475.8 MB, free: 3.422 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002353/0.1094, allocations: 2.21 MB / 478 MB, free: 1.109 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.1097, allocations: 0.7361 MB / 478.8 MB, free: 356 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.347e-05/0.1098, allocations: 17.42 kB / 478.8 MB, free: 332 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.176e-05/0.1099, allocations: 63.41 kB / 478.9 MB, free: 272 kB / 302.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1099, allocations: 4 kB / 478.9 MB, free: 268 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01335/0.1233, allocations: 3.844 MB / 482.7 MB, free: 12.54 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000221/0.1235, allocations: 223.1 kB / 482.9 MB, free: 12.28 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.765/1.888, allocations: 0 / 482.9 MB, free: 12.28 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)