Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.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.SMR_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.SynchronousMachines.SMR_Inverter,fileNamePrefix="HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter",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.000936/0.0009361, allocations: 99.16 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.301/1.301, allocations: 223.2 MB / 238.9 MB, free: 5.477 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.001265/0.001265, allocations: 185 kB / 290.2 MB, free: 2.168 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/package.mo): time 0.03222/0.03222, allocations: 8.787 MB / 350.1 MB, free: 4.668 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003627/0.0003629, allocations: 9.438 kB / 413.2 MB, free: 43.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09744/0.09782, allocations: 52.57 MB / 465.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01242/0.1103, allocations: 10.78 MB / 476.5 MB, free: 2.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008672/0.119, allocations: 4.192 MB / 480.7 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002272/0.1213, allocations: 75.69 kB / 480.8 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002765/0.1241, allocations: 0.8085 MB / 481.6 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003841/0.128, allocations: 1.137 MB / 482.7 MB, free: 12.34 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0/SynchronousMachines/SMR_Inverter.mo:88:3-88:33:writable] Warning: Conditional component ‘ir‘ is used in a non-connect context. Notification: Performance of NFTyping.typeClassSections: time 0.001839/0.1298, allocations: 0.5915 MB / 483.3 MB, free: 11.75 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004935/0.1348, allocations: 2.623 MB / 485.9 MB, free: 9.121 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003112/0.1379, allocations: 2.293 MB / 488.2 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002094/0.14, allocations: 1.187 MB / 489.4 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002137/0.1422, allocations: 1.381 MB / 490.8 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004653/0.1427, allocations: 200 kB / 491 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001092/0.1438, allocations: 371.7 kB / 491.4 MB, free: 3.648 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006244/0.1444, allocations: 0.6813 MB / 492 MB, free: 2.965 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008962/0.1453, allocations: 0.7109 MB / 492.8 MB, free: 2.246 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005595/0.1509, allocations: 5.197 MB / 498 MB, free: 13.03 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.151, allocations: 0 / 498 MB, free: 13.03 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.151, allocations: 4 kB / 498 MB, free: 13.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001676/0.1511, allocations: 4 kB / 498 MB, free: 13.02 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.009806/0.161, allocations: 3.555 MB / 0.4898 GB, free: 9.402 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.161, allocations: 12.03 kB / 0.4898 GB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001306/0.1623, allocations: 493.4 kB / 0.4902 GB, free: 8.895 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003935/0.1663, allocations: 0.7609 MB / 0.491 GB, free: 8.129 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004595/0.1709, allocations: 2.176 MB / 0.4931 GB, free: 5.895 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002035/0.1711, allocations: 234.3 kB / 0.4933 GB, free: 5.664 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005302/0.1716, allocations: 323.9 kB / 0.4936 GB, free: 5.348 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007495/0.1791, allocations: 4.126 MB / 0.4977 GB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.99e-05/0.1792, allocations: 0 / 0.4977 GB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002908/0.1795, allocations: 128 kB / 0.4978 GB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001381/0.1797, allocations: 142.3 kB / 0.4979 GB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006304/0.186, allocations: 3.503 MB / 0.5014 GB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02016/0.2062, allocations: 13.22 MB / 0.5143 GB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005281/0.2115, allocations: 5.497 MB / 0.5196 GB, free: 9.539 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004423/0.216, allocations: 2.724 MB / 0.5223 GB, free: 6.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.699e-05/0.216, allocations: 43.56 kB / 0.5223 GB, free: 6.676 MB / 366.1 MB Notification: Performance of pre-optimization done (n=112): time 3.046e-06/0.216, allocations: 0 / 0.5223 GB, free: 6.676 MB / 366.1 MB Notification: Performance of matching and sorting (n=115): time 0.008911/0.225, allocations: 4.726 MB / 0.5269 GB, free: 1.777 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.629e-05/0.2251, allocations: 64.41 kB / 0.527 GB, free: 1.703 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002095/0.2272, allocations: 1.543 MB / 0.5285 GB, free: 156 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.827e-05/0.2273, allocations: 41.7 kB / 0.5286 GB, free: 108 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1968/0.4241, allocations: 1.419 MB / 0.5299 GB, free: 63.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003897/0.4245, allocations: 409.8 kB / 0.5303 GB, free: 63.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.54e-05/0.4246, allocations: 30.19 kB / 0.5304 GB, free: 63.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.463e-05/0.4247, allocations: 367 kB / 0.5307 GB, free: 63.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009127/0.4256, allocations: 0.5816 MB / 0.5313 GB, free: 63.37 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00116/0.4268, allocations: 1.059 MB / 0.5323 GB, free: 62.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001178/0.428, allocations: 0.7857 MB / 0.5331 GB, free: 62.79 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.909e-06/0.428, allocations: 4.812 kB / 0.5331 GB, free: 62.79 MB / 366.1 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003288/0.4313, allocations: 2.077 MB / 0.5351 GB, free: 62.44 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.055e-05/0.4314, allocations: 10.94 kB / 0.5351 GB, free: 62.44 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.874e-05/0.4314, allocations: 15.59 kB / 0.5351 GB, free: 62.44 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003683/0.4318, allocations: 138.5 kB / 0.5353 GB, free: 62.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001453/0.4332, allocations: 375.5 kB / 0.5356 GB, free: 62.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002685/0.4359, allocations: 3.096 MB / 0.5387 GB, free: 59.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001692/0.4377, allocations: 73.78 kB / 0.5387 GB, free: 59.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001704/0.4378, allocations: 67.95 kB / 0.5388 GB, free: 59.78 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (188): * Single equations (assignments): 185 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002377/0.4402, allocations: 0.955 MB / 0.5397 GB, free: 59.64 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004467/0.4407, allocations: 173.3 kB / 0.5399 GB, free: 59.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003393/0.4441, allocations: 1.868 MB / 0.5417 GB, free: 59.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.274e-05/0.4441, allocations: 11.25 kB / 0.5417 GB, free: 59.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.109e-05/0.4441, allocations: 5.625 kB / 0.5417 GB, free: 59.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.587e-05/0.4441, allocations: 7.734 kB / 0.5417 GB, free: 59.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007403/0.4516, allocations: 4.42 MB / 0.546 GB, free: 57.91 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.4516, allocations: 1.031 kB / 0.5461 GB, free: 57.91 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000871/0.4525, allocations: 198 kB / 0.5462 GB, free: 57.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007766/0.4533, allocations: 299 kB / 0.5465 GB, free: 57.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.943e-05/0.4534, allocations: 38.28 kB / 0.5466 GB, free: 57.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005581/0.459, allocations: 7.547 MB / 0.5539 GB, free: 51.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.459, allocations: 6.094 kB / 0.5539 GB, free: 51.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004224/0.4632, allocations: 2.729 MB / 0.5566 GB, free: 49.67 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000837/0.4641, allocations: 376 kB / 0.557 GB, free: 49.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001947/0.4643, allocations: 31.48 kB / 0.557 GB, free: 49.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006932/0.465, allocations: 66.66 kB / 0.5571 GB, free: 49.35 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002069/0.4652, allocations: 89.16 kB / 0.5571 GB, free: 49.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.954e-05/0.4653, allocations: 27.75 kB / 0.5572 GB, free: 49.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001293/0.4666, allocations: 1.05 MB / 0.5582 GB, free: 48.9 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4666, allocations: 0 / 0.5582 GB, free: 48.9 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001622/0.4682, allocations: 0.5012 MB / 0.5587 GB, free: 48.86 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (smr.inertiaRotor.w,smr.stator.zeroInductor.i0,smr.stator.core.Phi.re,smr.stator.core.Phi.im,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,vfController.x,loadInertia.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 (91): * Single equations (assignments): 87 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003598/0.4718, allocations: 3.735 MB / 0.5623 GB, free: 46.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002323/0.4742, allocations: 1.763 MB / 0.5641 GB, free: 45.58 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.4742, allocations: 2.375 kB / 0.5641 GB, free: 45.58 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001538/0.4757, allocations: 1.252 MB / 0.5653 GB, free: 44.78 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001891/0.4776, allocations: 474.5 kB / 0.5657 GB, free: 44.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02698/0.5046, allocations: 24.8 MB / 0.5899 GB, free: 19.99 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001475/0.5061, allocations: 2.295 MB / 0.5922 GB, free: 17.67 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001281/0.5074, allocations: 375.3 kB / 0.5925 GB, free: 17.3 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00104/0.5085, allocations: 1.112 MB / 0.5936 GB, free: 16.19 MB / 366.1 MB Notification: Performance of SimCode: time 9.52e-07/0.5085, allocations: 4 kB / 0.5936 GB, free: 16.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07727/0.5858, allocations: 43.3 MB / 0.6359 GB, free: 5.262 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002427/0.5861, allocations: 200.1 kB / 0.6361 GB, free: 5.02 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.827/3.413, allocations: 3.938 kB / 0.6361 GB, free: 5.016 MB / 398.1 MB (rm -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; mkfifo HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe >> ../files/HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_SynchronousMachines_SMR_Inverter.fmu > HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe 2>&1) Environment - environmentSimulation: