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-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.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.001172/0.001172, 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.402/1.402, allocations: 222.9 MB / 239.3 MB, free: 4.625 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.001332/0.001333, allocations: 195.6 kB / 289.6 MB, free: 2.344 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03594/0.03594, allocations: 8.798 MB / 348.5 MB, free: 4.75 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002947/0.002947, allocations: 80.81 kB / 411.2 MB, free: 41.97 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09892/0.1019, allocations: 51.57 MB / 462.8 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMPM_CurrentSource): time 0.02751/0.1295, allocations: 28.71 MB / 491.5 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01739/0.1469, allocations: 8.454 MB / 499.9 MB, free: 8.996 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00692/0.1538, allocations: 219.3 kB / 0.4884 GB, free: 8.781 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01869/0.1726, allocations: 8.124 MB / 0.4964 GB, free: 0.6367 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009463/0.182, allocations: 2.815 MB / 0.4991 GB, free: 13.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005905/0.188, allocations: 1.846 MB / 0.5009 GB, free: 11.97 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01391/0.2019, allocations: 9.922 MB / 0.5106 GB, free: 2.016 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2065/0.4085, allocations: 21.42 MB / 0.5315 GB, free: 13.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007519/0.416, allocations: 5.346 MB / 0.5367 GB, free: 13.27 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01059/0.4267, allocations: 6.068 MB / 0.5427 GB, free: 12.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005136/0.4319, allocations: 1.546 MB / 0.5442 GB, free: 12.3 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006377/0.4383, allocations: 1.894 MB / 0.546 GB, free: 12.3 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004187/0.4425, allocations: 2.995 MB / 0.5489 GB, free: 11.96 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008124/0.4506, allocations: 5.856 MB / 0.5547 GB, free: 10.61 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01436/0.465, allocations: 20.51 MB / 0.5747 GB, free: 1.727 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.465, allocations: 0 / 0.5747 GB, free: 1.727 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.465, allocations: 0 / 0.5747 GB, free: 1.727 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003869/0.4654, allocations: 0 / 0.5747 GB, free: 1.727 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.03143/0.4969, allocations: 11.88 MB / 0.5863 GB, free: 10.19 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.4969, allocations: 10.41 kB / 0.5863 GB, free: 10.18 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004448/0.5014, allocations: 1.344 MB / 0.5876 GB, free: 9.23 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0309/0.5323, allocations: 5.61 MB / 0.5931 GB, free: 4.328 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0115/0.5438, allocations: 6.134 MB / 0.5991 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005274/0.5444, allocations: 0.7032 MB / 0.5998 GB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002363/0.5468, allocations: 0.9346 MB / 0.6007 GB, free: 12.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02902/0.5758, allocations: 15.08 MB / 0.6154 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002478/0.5761, allocations: 22.98 kB / 0.6154 GB, free: 13.62 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001413/0.5775, allocations: 391.1 kB / 0.6158 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004334/0.5779, allocations: 0.5117 MB / 0.6163 GB, free: 12.73 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0261/0.6041, allocations: 13.74 MB / 0.6297 GB, free: 14.98 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07818/0.6823, allocations: 47.84 MB / 0.6764 GB, free: 14.71 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1935/0.8758, allocations: 28.78 MB / 0.7045 GB, free: 158 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003996/0.8798, allocations: 2.895 MB / 0.7074 GB, free: 157.9 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003146/0.8802, allocations: 243.6 kB / 0.7076 GB, free: 157.7 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.794e-05/0.8802, allocations: 71.86 kB / 0.7077 GB, free: 157.7 MB / 494.1 MB Notification: Performance of pre-optimization done (n=372): time 6.392e-06/0.8802, allocations: 0 / 0.7077 GB, free: 157.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=380): time 0.03256/0.9128, allocations: 14.76 MB / 0.7221 GB, free: 156 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.576e-05/0.9129, allocations: 90.55 kB / 0.7222 GB, free: 155.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007374/0.9203, allocations: 3.765 MB / 0.7259 GB, free: 155.6 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007297/0.9211, allocations: 89.58 kB / 0.7259 GB, free: 155.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002315/0.9234, allocations: 4.076 MB / 0.7299 GB, free: 153.3 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001472/0.9249, allocations: 1.304 MB / 0.7312 GB, free: 152.3 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001543/0.9264, allocations: 1.172 MB / 0.7323 GB, free: 151.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.291e-05/0.9265, allocations: 306.1 kB / 0.7326 GB, free: 151.4 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0034/0.9299, allocations: 2.569 MB / 0.7351 GB, free: 150.5 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004512/0.9344, allocations: 5.055 MB / 0.7401 GB, free: 146.2 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009232/0.9437, allocations: 8.263 MB / 0.7481 GB, free: 140.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001378/0.9439, allocations: 23.56 kB / 0.7482 GB, free: 140.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.01344/0.9573, allocations: 8.619 MB / 0.7566 GB, free: 136.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.071e-05/0.9574, allocations: 39.09 kB / 0.7566 GB, free: 136.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.95e-05/0.9575, allocations: 82.25 kB / 0.7567 GB, free: 136.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002155/0.9597, allocations: 0.8786 MB / 0.7576 GB, free: 136.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004425/0.9641, allocations: 1.364 MB / 0.7589 GB, free: 136.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009572/0.9737, allocations: 9.035 MB / 0.7677 GB, free: 129.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004451/0.9782, allocations: 328.4 kB / 0.768 GB, free: 128.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009604/0.9792, allocations: 304.5 kB / 0.7683 GB, free: 128.6 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 376 * 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 (720): * Single equations (assignments): 718 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,40,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.006357/0.9855, allocations: 3.522 MB / 0.7718 GB, free: 125.6 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001082/0.9866, allocations: 414.8 kB / 0.7722 GB, free: 125.2 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008907/0.9955, allocations: 5.856 MB / 0.7779 GB, free: 119.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.358e-05/0.9956, allocations: 46.83 kB / 0.7779 GB, free: 119.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.255e-05/0.9956, allocations: 8 kB / 0.7779 GB, free: 119.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.48e-05/0.9957, allocations: 19.92 kB / 0.7779 GB, free: 119.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02393/1.02, allocations: 14.79 MB / 0.7924 GB, free: 104.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.315e-05/1.02, allocations: 4 kB / 0.7924 GB, free: 104.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002569/1.022, allocations: 0.6631 MB / 0.793 GB, free: 104.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002187/1.024, allocations: 0.7338 MB / 0.7937 GB, free: 103.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005731/1.025, allocations: 83.97 kB / 0.7938 GB, free: 103.4 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008123/1.033, allocations: 8.062 MB / 0.8017 GB, free: 95.09 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/1.033, allocations: 8.031 kB / 0.8017 GB, free: 95.08 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01055/1.044, allocations: 8.495 MB / 0.81 GB, free: 86.48 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001766/1.046, allocations: 0.8746 MB / 0.8109 GB, free: 85.58 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005852/1.046, allocations: 71.91 kB / 0.8109 GB, free: 85.51 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001797/1.048, allocations: 187.8 kB / 0.8111 GB, free: 85.33 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004471/1.048, allocations: 242.7 kB / 0.8113 GB, free: 85.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001921/1.049, allocations: 112 kB / 0.8114 GB, free: 84.98 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003123/1.052, allocations: 2.52 MB / 0.8139 GB, free: 82.48 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.5e-07/1.052, allocations: 0 / 0.8139 GB, free: 82.48 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005051/1.057, allocations: 1.554 MB / 0.8154 GB, free: 80.93 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01068/1.068, allocations: 9.213 MB / 0.8244 GB, free: 71.61 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0243/1.092, allocations: 12.51 MB / 0.8366 GB, free: 59.12 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.155e-05/1.092, allocations: 8 kB / 0.8366 GB, free: 59.12 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004334/1.096, allocations: 2.96 MB / 0.8395 GB, free: 56.13 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004748/1.101, allocations: 0.9716 MB / 0.8405 GB, free: 55.21 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2427/1.344, allocations: 61.75 MB / 0.9008 GB, free: 148.8 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01046/1.354, allocations: 5.973 MB / 0.9066 GB, free: 147.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.005488/1.36, allocations: 1.864 MB / 0.9084 GB, free: 147.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005054/1.365, allocations: 3.221 MB / 0.9116 GB, free: 147.4 MB / 494.1 MB Notification: Performance of SimCode: time 9.21e-07/1.365, allocations: 3.938 kB / 0.9116 GB, free: 147.4 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2317/1.597, allocations: 122.2 MB / 1.031 GB, free: 40.85 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.51/13.11, allocations: 0 / 1.031 GB, free: 40.85 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 & python3 -m fmpy simulate --output-file HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 HanserModelica_HanserModelica_SynchronousMachines_SMPM_CurrentSource.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1)