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-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.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.001059/0.001058, allocations: 108 kB / 15.6 MB, free: 132 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.421/1.421, allocations: 222.9 MB / 239.3 MB, free: 4.598 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.00146/0.001461, allocations: 192.4 kB / 289.6 MB, free: 2.328 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03545/0.03545, allocations: 8.798 MB / 348.5 MB, free: 4.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001499/0.001499, allocations: 79.02 kB / 411.2 MB, free: 42.03 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08324/0.08475, allocations: 51.57 MB / 462.8 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01419/0.09898, allocations: 13.38 MB / 476.1 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007934/0.1069, allocations: 4.43 MB / 480.6 MB, free: 12.34 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001298/0.1083, allocations: 87.62 kB / 480.7 MB, free: 12.25 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002243/0.1105, allocations: 1.025 MB / 481.7 MB, free: 11.22 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003064/0.1137, allocations: 1.295 MB / 483 MB, free: 9.918 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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.001702/0.1154, allocations: 0.8726 MB / 483.8 MB, free: 9.047 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003545/0.1189, allocations: 3.78 MB / 487.6 MB, free: 5.254 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003534/0.1225, allocations: 3.343 MB / 491 MB, free: 1.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002025/0.1245, allocations: 1.78 MB / 492.7 MB, free: 56 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00228/0.1268, allocations: 1.993 MB / 494.7 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000602/0.1274, allocations: 500 kB / 495.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001195/0.1286, allocations: 0.6911 MB / 495.9 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008421/0.1295, allocations: 1.075 MB / 497 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001993/0.1315, allocations: 2.038 MB / 499 MB, free: 9.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005604/0.1371, allocations: 6.364 MB / 0.4936 GB, free: 3.367 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1371, allocations: 4 kB / 0.4936 GB, free: 3.363 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1371, allocations: 0 / 0.4936 GB, free: 3.363 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001109/0.1372, allocations: 0 / 0.4936 GB, free: 3.363 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.009446/0.1467, allocations: 4.179 MB / 0.4976 GB, free: 15.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.1467, allocations: 12.03 kB / 0.4976 GB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000712/0.1475, allocations: 489.6 kB / 0.4981 GB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003856/0.1513, allocations: 0.7579 MB / 0.4989 GB, free: 13.85 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003574/0.1549, allocations: 2.239 MB / 0.501 GB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001784/0.1551, allocations: 234.7 kB / 0.5013 GB, free: 11.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004555/0.1556, allocations: 323.8 kB / 0.5016 GB, free: 11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006438/0.162, allocations: 4.165 MB / 0.5056 GB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.166e-05/0.1621, allocations: 11.84 kB / 0.5057 GB, free: 6.777 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002951/0.1624, allocations: 124 kB / 0.5058 GB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001264/0.1625, allocations: 142.3 kB / 0.5059 GB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005781/0.1683, allocations: 3.503 MB / 0.5093 GB, free: 3.004 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01952/0.1878, allocations: 13.21 MB / 0.5222 GB, free: 5.383 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1687/0.3566, allocations: 5.51 MB / 0.5276 GB, free: 64.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002216/0.3589, allocations: 1.077 MB / 0.5287 GB, free: 64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004672/0.3635, allocations: 3.037 MB / 0.5316 GB, free: 63.42 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.945e-05/0.3636, allocations: 46.12 kB / 0.5317 GB, free: 63.38 MB / 366.1 MB Notification: Performance of pre-optimization done (n=107): time 2.845e-06/0.3636, allocations: 2.188 kB / 0.5317 GB, free: 63.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=110): time 0.008435/0.372, allocations: 4.616 MB / 0.5362 GB, free: 62.08 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.601e-05/0.3721, allocations: 62.73 kB / 0.5362 GB, free: 62.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002156/0.3742, allocations: 1.6 MB / 0.5378 GB, free: 61.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.363e-05/0.3743, allocations: 47.33 kB / 0.5378 GB, free: 61.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009124/0.3752, allocations: 1.422 MB / 0.5392 GB, free: 61.11 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002857/0.3755, allocations: 387.8 kB / 0.5396 GB, free: 60.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004194/0.376, allocations: 278.7 kB / 0.5399 GB, free: 60.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.27e-05/0.376, allocations: 307 kB / 0.5402 GB, free: 60.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009917/0.377, allocations: 0.5657 MB / 0.5407 GB, free: 60.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001289/0.3783, allocations: 1.065 MB / 0.5418 GB, free: 59.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002086/0.3804, allocations: 1.723 MB / 0.5434 GB, free: 58.78 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.558e-06/0.3804, allocations: 4.625 kB / 0.5434 GB, free: 58.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003165/0.3836, allocations: 2.045 MB / 0.5454 GB, free: 57.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/0.3836, allocations: 11.66 kB / 0.5455 GB, free: 57.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.17e-05/0.3837, allocations: 15.94 kB / 0.5455 GB, free: 57.86 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003548/0.384, allocations: 132.3 kB / 0.5456 GB, free: 57.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001321/0.3854, allocations: 366.2 kB / 0.5459 GB, free: 57.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002063/0.3874, allocations: 3.38 MB / 0.5492 GB, free: 54.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001218/0.3887, allocations: 68.8 kB / 0.5493 GB, free: 54.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000122/0.3888, allocations: 66.28 kB / 0.5494 GB, free: 54.54 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 70 * 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 (185): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001801/0.3906, allocations: 0.9702 MB / 0.5503 GB, free: 53.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000266/0.3909, allocations: 169.6 kB / 0.5505 GB, free: 53.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003148/0.394, allocations: 1.809 MB / 0.5522 GB, free: 52.97 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.3941, allocations: 13.16 kB / 0.5523 GB, free: 52.97 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.551e-05/0.3941, allocations: 3.969 kB / 0.5523 GB, free: 52.97 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.193e-05/0.3941, allocations: 11.73 kB / 0.5523 GB, free: 52.97 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005631/0.3997, allocations: 4.346 MB / 0.5565 GB, free: 50.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/0.3998, allocations: 2.75 kB / 0.5565 GB, free: 50.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007778/0.4006, allocations: 181.9 kB / 0.5567 GB, free: 50.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007128/0.4013, allocations: 311.1 kB / 0.557 GB, free: 50.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.099e-05/0.4014, allocations: 31.89 kB / 0.557 GB, free: 50.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005394/0.4068, allocations: 8.195 MB / 0.565 GB, free: 42.99 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.4068, allocations: 2.375 kB / 0.565 GB, free: 42.99 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003212/0.41, allocations: 2.566 MB / 0.5675 GB, free: 41.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004985/0.4105, allocations: 379.1 kB / 0.5679 GB, free: 41.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002552/0.4108, allocations: 27.36 kB / 0.5679 GB, free: 41.05 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008179/0.4116, allocations: 54.44 kB / 0.568 GB, free: 41.03 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/0.4118, allocations: 87.09 kB / 0.5681 GB, free: 40.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.385e-05/0.4119, allocations: 30.64 kB / 0.5681 GB, free: 40.97 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001395/0.4133, allocations: 1.1 MB / 0.5692 GB, free: 40.37 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4133, allocations: 0 / 0.5692 GB, free: 40.37 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001698/0.415, allocations: 0.5006 MB / 0.5697 GB, free: 40.04 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 (86): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003509/0.4185, allocations: 3.172 MB / 0.5727 GB, free: 36.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003185/0.4217, allocations: 1.974 MB / 0.5747 GB, free: 34.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.4217, allocations: 448 / 0.5747 GB, free: 34.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001529/0.4232, allocations: 1.224 MB / 0.5759 GB, free: 33.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001975/0.4252, allocations: 0.5036 MB / 0.5764 GB, free: 33.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0239/0.4491, allocations: 19.79 MB / 0.5957 GB, free: 11.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001817/0.451, allocations: 2.229 MB / 0.5979 GB, free: 9.504 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001195/0.4522, allocations: 379.4 kB / 0.5982 GB, free: 9.129 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001117/0.4533, allocations: 1.109 MB / 0.5993 GB, free: 8.02 MB / 366.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4534, allocations: 0 / 0.5993 GB, free: 8.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08242/0.5358, allocations: 46.33 MB / 0.6446 GB, free: 10.04 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.922/10.46, allocations: 19.78 kB / 0.6446 GB, free: 10.02 MB / 414.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/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)