Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.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.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource",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.001005/0.001005, allocations: 98.92 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.335/1.335, allocations: 223.2 MB / 238.9 MB, free: 5.648 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.001302/0.001302, allocations: 181 kB / 290.2 MB, free: 2.336 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03189/0.03189, allocations: 8.785 MB / 350.1 MB, free: 4.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003812/0.0003812, allocations: 9.938 kB / 413.2 MB, free: 43.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1014, allocations: 52.57 MB / 465.7 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02283/0.1243, allocations: 23.05 MB / 488.8 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01548/0.1398, allocations: 8 MB / 496.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006577/0.1464, allocations: 183.4 kB / 497 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006844/0.1533, allocations: 1.687 MB / 498.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009809/0.1631, allocations: 2.777 MB / 0.4897 GB, free: 9.684 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004849/0.168, allocations: 1.42 MB / 0.4911 GB, free: 8.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01348/0.1814, allocations: 8.03 MB / 0.4989 GB, free: 236 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03047/0.2119, allocations: 17.16 MB / 0.5157 GB, free: 14.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006611/0.2186, allocations: 3.531 MB / 0.5191 GB, free: 11.43 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007099/0.2258, allocations: 3.996 MB / 0.523 GB, free: 7.422 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002185/0.228, allocations: 0.5938 MB / 0.5236 GB, free: 6.828 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004334/0.2323, allocations: 0.8824 MB / 0.5245 GB, free: 5.945 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002077/0.2344, allocations: 1.744 MB / 0.5262 GB, free: 4.195 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002995/0.2374, allocations: 1.962 MB / 0.5281 GB, free: 2.223 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.243/0.4804, allocations: 17.34 MB / 0.545 GB, free: 20.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.4805, allocations: 4.031 kB / 0.545 GB, free: 20.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.166e-06/0.4805, allocations: 0 / 0.545 GB, free: 20.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007312/0.4812, allocations: 0 / 0.545 GB, free: 20.16 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2602 * Number of variables: 2602 Notification: Performance of Generate backend data structure: time 0.02799/0.5092, allocations: 9.84 MB / 0.5546 GB, free: 15.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.5093, allocations: 9.469 kB / 0.5546 GB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004543/0.5138, allocations: 1.345 MB / 0.5559 GB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03069/0.5445, allocations: 5.537 MB / 0.5613 GB, free: 12.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01584/0.5604, allocations: 6.074 MB / 0.5673 GB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005699/0.561, allocations: 0.7058 MB / 0.568 GB, free: 11.13 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003215/0.5643, allocations: 0.9169 MB / 0.5689 GB, free: 11.12 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03364/0.5979, allocations: 14.93 MB / 0.5834 GB, free: 7.293 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000303/0.5982, allocations: 19.5 kB / 0.5835 GB, free: 7.277 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002259/0.6005, allocations: 389.1 kB / 0.5838 GB, free: 7.199 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004096/0.6009, allocations: 0.517 MB / 0.5843 GB, free: 6.711 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02678/0.6277, allocations: 13.65 MB / 0.5977 GB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08297/0.7107, allocations: 47.9 MB / 0.6444 GB, free: 14.69 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02141/0.7322, allocations: 28.73 MB / 0.6725 GB, free: 14.24 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005929/0.7328, allocations: 237.5 kB / 0.6727 GB, free: 13.98 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.735e-05/0.7329, allocations: 73.42 kB / 0.6728 GB, free: 13.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=372): time 5.591e-06/0.7329, allocations: 0 / 0.6728 GB, free: 13.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=380): time 0.03054/0.7635, allocations: 14.54 MB / 0.687 GB, free: 15.29 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.71e-05/0.7636, allocations: 90.39 kB / 0.6871 GB, free: 15.19 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006683/0.7703, allocations: 3.667 MB / 0.6907 GB, free: 11.53 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009347/0.7713, allocations: 89.7 kB / 0.6908 GB, free: 11.44 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003538/0.7748, allocations: 4.079 MB / 0.6947 GB, free: 7.336 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00212/0.7769, allocations: 1.303 MB / 0.696 GB, free: 6.043 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004106/0.7774, allocations: 120 kB / 0.6961 GB, free: 5.926 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0003998/0.7778, allocations: 0.5536 MB / 0.6967 GB, free: 5.367 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004305/0.7821, allocations: 2.553 MB / 0.6992 GB, free: 2.809 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2415/1.024, allocations: 4.996 MB / 0.704 GB, free: 153 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006594/1.03, allocations: 3.736 MB / 0.7077 GB, free: 152.9 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001013/1.03, allocations: 25.2 kB / 0.7077 GB, free: 152.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01434/1.045, allocations: 8.55 MB / 0.7161 GB, free: 150 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.027e-05/1.045, allocations: 39.94 kB / 0.7161 GB, free: 150 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001366/1.045, allocations: 82.03 kB / 0.7162 GB, free: 150 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002007/1.047, allocations: 0.8499 MB / 0.717 GB, free: 149.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004497/1.051, allocations: 1.366 MB / 0.7183 GB, free: 149.7 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009298/1.061, allocations: 8.411 MB / 0.7266 GB, free: 144.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005892/1.067, allocations: 325.3 kB / 0.7269 GB, free: 144.4 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001211/1.068, allocations: 300.3 kB / 0.7272 GB, free: 144.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 374 * 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 (722): * Single equations (assignments): 720 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007035/1.075, allocations: 3.509 MB / 0.7306 GB, free: 142.7 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001246/1.076, allocations: 415.8 kB / 0.731 GB, free: 142.7 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009462/1.086, allocations: 5.84 MB / 0.7367 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.791e-05/1.086, allocations: 48.02 kB / 0.7367 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.358e-05/1.086, allocations: 8.125 kB / 0.7367 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-05/1.086, allocations: 19.03 kB / 0.7368 GB, free: 140.3 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02218/1.108, allocations: 14.39 MB / 0.7508 GB, free: 129.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.439e-05/1.108, allocations: 1.25 kB / 0.7508 GB, free: 129.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002392/1.111, allocations: 0.6683 MB / 0.7515 GB, free: 129 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001749/1.112, allocations: 0.6922 MB / 0.7521 GB, free: 128.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002179/1.113, allocations: 87.97 kB / 0.7522 GB, free: 128.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007481/1.12, allocations: 7.561 MB / 0.7596 GB, free: 120.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/1.12, allocations: 4 kB / 0.7596 GB, free: 120.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0103/1.13, allocations: 8.698 MB / 0.7681 GB, free: 111.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00233/1.133, allocations: 0.8862 MB / 0.769 GB, free: 110.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007614/1.133, allocations: 67.95 kB / 0.769 GB, free: 110.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001744/1.135, allocations: 183.9 kB / 0.7692 GB, free: 110.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004316/1.136, allocations: 250.7 kB / 0.7694 GB, free: 110.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001922/1.136, allocations: 107.9 kB / 0.7696 GB, free: 110.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003394/1.139, allocations: 2.446 MB / 0.7719 GB, free: 107.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.4e-07/1.139, allocations: 4 kB / 0.7719 GB, free: 107.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005525/1.145, allocations: 1.55 MB / 0.7735 GB, free: 106.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 2 (smpm.inertiaRotor.w,quadraticTorque.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 (362): * Single equations (assignments): 360 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01021/1.155, allocations: 9.955 MB / 0.7832 GB, free: 96.02 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009402/1.164, allocations: 6.497 MB / 0.7895 GB, free: 89.51 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.298e-06/1.165, allocations: 4.188 kB / 0.7895 GB, free: 89.5 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003947/1.168, allocations: 2.961 MB / 0.7924 GB, free: 86.52 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004003/1.173, allocations: 0.8475 MB / 0.7932 GB, free: 85.7 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3082/1.481, allocations: 101 MB / 0.8919 GB, free: 175.6 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007411/1.488, allocations: 6.115 MB / 0.8979 GB, free: 174.7 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005385/1.494, allocations: 1.864 MB / 0.8997 GB, free: 174.6 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004363/1.498, allocations: 3.242 MB / 0.9029 GB, free: 174.6 MB / 494.1 MB Notification: Performance of SimCode: time 2.344e-06/1.498, allocations: 0 / 0.9029 GB, free: 174.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1544/1.652, allocations: 115.7 MB / 1.016 GB, free: 72.55 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002456/1.653, allocations: 201.8 kB / 1.016 GB, free: 72.31 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.799/6.452, allocations: 7.875 kB / 1.016 GB, free: 72.3 MB / 494.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) Environment - environmentSimulation: