Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.TestDCPMMachine.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.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Rotational.TestDCPMMachine,fileNamePrefix="HanserModelica_HanserModelica_Rotational_TestDCPMMachine",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.006427/0.006427, allocations: 98.67 kB / 15.73 MB, free: 6.039 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.414/1.414, allocations: 222.9 MB / 239.4 MB, free: 4.559 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.001518/0.001518, allocations: 192.5 kB / 289.7 MB, free: 2.27 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03613/0.03613, allocations: 8.8 MB / 348.7 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002227/0.002227, allocations: 75.88 kB / 463.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08824/0.09048, allocations: 51.57 MB / 0.5029 GB, free: 10.04 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Rotational.TestDCPMMachine): time 0.00414/0.09465, allocations: 2.86 MB / 0.5057 GB, free: 7.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001237/0.09593, allocations: 0.6583 MB / 0.5063 GB, free: 6.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001478/0.09609, allocations: 7.938 kB / 0.5063 GB, free: 6.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001671/0.09627, allocations: 47.52 kB / 0.5064 GB, free: 6.441 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002555/0.09657, allocations: 99.17 kB / 0.5065 GB, free: 6.344 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001701/0.09675, allocations: 83.89 kB / 0.5066 GB, free: 6.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000424/0.09719, allocations: 378.4 kB / 0.5069 GB, free: 5.891 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002584/0.09746, allocations: 136.5 kB / 0.5071 GB, free: 5.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001702/0.09764, allocations: 135.5 kB / 0.5072 GB, free: 5.617 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001925/0.09784, allocations: 159.3 kB / 0.5073 GB, free: 5.461 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.104e-05/0.09791, allocations: 40 kB / 0.5074 GB, free: 5.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.013e-05/0.09797, allocations: 36 kB / 0.5074 GB, free: 5.387 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.609e-05/0.09804, allocations: 67.78 kB / 0.5075 GB, free: 5.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001622/0.09821, allocations: 171.2 kB / 0.5076 GB, free: 5.152 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004482/0.09867, allocations: 414.4 kB / 0.508 GB, free: 4.746 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.586e-06/0.09868, allocations: 0 / 0.508 GB, free: 4.746 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.09868, allocations: 0 / 0.508 GB, free: 4.746 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.0987, allocations: 4 kB / 0.508 GB, free: 4.742 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0009424/0.09965, allocations: 0.6039 MB / 0.5086 GB, free: 4.086 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.09969, allocations: 12.03 kB / 0.5086 GB, free: 4.074 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.689e-05/0.09978, allocations: 66.72 kB / 0.5087 GB, free: 4 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.29e-05/0.09985, allocations: 32.75 kB / 0.5087 GB, free: 3.969 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000381/0.1002, allocations: 275.9 kB / 0.509 GB, free: 3.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.1003, allocations: 25.03 kB / 0.509 GB, free: 3.637 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.142e-05/0.1003, allocations: 28.38 kB / 0.509 GB, free: 3.609 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005404/0.1009, allocations: 278 kB / 0.5093 GB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.1009, allocations: 0 / 0.5093 GB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.823e-05/0.1009, allocations: 15.94 kB / 0.5093 GB, free: 3.316 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.664e-06/0.1009, allocations: 4 kB / 0.5093 GB, free: 3.312 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000478/0.1014, allocations: 218.5 kB / 0.5095 GB, free: 3.098 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/0.103, allocations: 1.029 MB / 0.5105 GB, free: 1.996 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004026/0.1034, allocations: 154.5 kB / 0.5107 GB, free: 1.836 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001848/0.1036, allocations: 80.77 kB / 0.5108 GB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.664e-05/0.1036, allocations: 0 / 0.5108 GB, free: 1.754 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.413e-05/0.1037, allocations: 30.56 kB / 0.5108 GB, free: 1.715 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.102e-06/0.1037, allocations: 4 kB / 0.5108 GB, free: 1.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=16): time 0.001427/0.1051, allocations: 0.6907 MB / 0.5115 GB, free: 0.9492 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.464e-05/0.1052, allocations: 59.34 kB / 0.5115 GB, free: 0.8789 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002011/0.1054, allocations: 195.2 kB / 0.5117 GB, free: 0.6797 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.384e-05/0.1054, allocations: 37.64 kB / 0.5118 GB, free: 0.6367 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.1055, allocations: 192.4 kB / 0.5119 GB, free: 456 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.641e-05/0.1056, allocations: 59.47 kB / 0.512 GB, free: 396 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.145e-05/0.1057, allocations: 37.7 kB / 0.512 GB, free: 352 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001382/0.1058, allocations: 330.8 kB / 0.5123 GB, free: 12 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001789/0.106, allocations: 59.97 kB / 0.5124 GB, free: 15.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001982/0.1062, allocations: 108.2 kB / 0.5125 GB, free: 15.83 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003362/0.1065, allocations: 157.6 kB / 0.5127 GB, free: 15.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.1066, allocations: 4 kB / 0.5127 GB, free: 15.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004863/0.107, allocations: 226.3 kB / 0.5129 GB, free: 15.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.1071, allocations: 9.719 kB / 0.5129 GB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.1071, allocations: 0 / 0.5129 GB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001495/0.1072, allocations: 24.84 kB / 0.5129 GB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001964/0.1075, allocations: 48.03 kB / 0.513 GB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001094/0.1086, allocations: 1.375 MB / 0.5143 GB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001255/0.1087, allocations: 7.984 kB / 0.5143 GB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.1087, allocations: 8 kB / 0.5143 GB, free: 13.82 MB / 366.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001556/0.1089, allocations: 153.7 kB / 0.5145 GB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.201e-05/0.1089, allocations: 19.84 kB / 0.5145 GB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.987e-05/0.109, allocations: 29.94 kB / 0.5145 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.109, allocations: 0 / 0.5145 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.109, allocations: 0 / 0.5145 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.826e-06/0.109, allocations: 0 / 0.5145 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009119/0.1099, allocations: 0.6101 MB / 0.5151 GB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.1099, allocations: 0 / 0.5151 GB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002017/0.1101, allocations: 43.97 kB / 0.5151 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.09e-05/0.1102, allocations: 24.84 kB / 0.5152 GB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.447e-05/0.1103, allocations: 7.938 kB / 0.5152 GB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00102/0.1113, allocations: 1.363 MB / 0.5165 GB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1113, allocations: 0 / 0.5165 GB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006331/0.1119, allocations: 381.8 kB / 0.5169 GB, free: 10.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.71e-05/0.112, allocations: 89.02 kB / 0.517 GB, free: 10.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.774e-05/0.1121, allocations: 8 kB / 0.517 GB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001521/0.1122, allocations: 11.98 kB / 0.517 GB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.256e-05/0.1123, allocations: 19.98 kB / 0.517 GB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.35e-05/0.1123, allocations: 4 kB / 0.517 GB, free: 10.81 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001429/0.1124, allocations: 156.2 kB / 0.5171 GB, free: 10.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1124, allocations: 0 / 0.5171 GB, free: 10.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003216/0.1128, allocations: 52 kB / 0.5172 GB, free: 10.61 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (machine.inductor.i,machine.inertia.w,load.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000931/0.1137, allocations: 0.9042 MB / 0.5181 GB, free: 9.664 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000575/0.1143, allocations: 274.4 kB / 0.5183 GB, free: 9.383 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.1143, allocations: 0 / 0.5183 GB, free: 9.383 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003052/0.1146, allocations: 194.6 kB / 0.5185 GB, free: 9.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003777/0.115, allocations: 35.86 kB / 0.5186 GB, free: 9.145 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003426/0.1184, allocations: 2.569 MB / 0.5211 GB, free: 6.453 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003676/0.1188, allocations: 0.7515 MB / 0.5218 GB, free: 5.676 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.309e-05/0.1189, allocations: 25.53 kB / 0.5218 GB, free: 5.652 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.119, allocations: 75.42 kB / 0.5219 GB, free: 5.578 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1191, allocations: 3.938 kB / 0.5219 GB, free: 5.574 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03091/0.15, allocations: 4.697 MB / 0.5265 GB, free: 0.9883 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.62/9.77, allocations: 3.75 kB / 0.5265 GB, free: 0.9883 MB / 366.1 MB (rm -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe >> ../files/HanserModelica_HanserModelica.Rotational.TestDCPMMachine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Rotational_TestDCPMMachine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Rotational_TestDCPMMachine.fmu > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1)