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.007253/0.007253, 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.49/1.49, allocations: 222.9 MB / 239.4 MB, free: 4.566 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.001397/0.001397, allocations: 180.5 kB / 289.7 MB, free: 2.285 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0352/0.0352, allocations: 8.805 MB / 348.7 MB, free: 4.633 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001539/0.001539, allocations: 75.88 kB / 463.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09998/0.1015, allocations: 51.56 MB / 0.5029 GB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.SynchronousMachines.SMR_Inverter): time 0.01603/0.1176, allocations: 13.39 MB / 0.516 GB, free: 12.55 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.008667/0.1263, allocations: 4.426 MB / 0.5203 GB, free: 8.109 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002331/0.1287, allocations: 83.69 kB / 0.5204 GB, free: 8.027 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003313/0.1321, allocations: 1.037 MB / 0.5214 GB, free: 6.984 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004522/0.1366, allocations: 1.285 MB / 0.5227 GB, free: 5.691 MB / 366.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.002717/0.1393, allocations: 0.8651 MB / 0.5235 GB, free: 4.824 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005307/0.1447, allocations: 3.809 MB / 0.5272 GB, free: 1.004 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2421/0.3868, allocations: 3.338 MB / 0.5305 GB, free: 5.137 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002789/0.3896, allocations: 1.777 MB / 0.5322 GB, free: 5.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003035/0.3927, allocations: 2.004 MB / 0.5342 GB, free: 4.664 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001047/0.3938, allocations: 0.4897 MB / 0.5347 GB, free: 4.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001824/0.3956, allocations: 0.6889 MB / 0.5353 GB, free: 4.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009473/0.3966, allocations: 1.071 MB / 0.5364 GB, free: 4.535 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002729/0.3993, allocations: 2.042 MB / 0.5384 GB, free: 4.035 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008001/0.4073, allocations: 6.402 MB / 0.5446 GB, free: 3.395 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.108e-05/0.4074, allocations: 0 / 0.5446 GB, free: 3.395 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.4074, allocations: 1.438 kB / 0.5446 GB, free: 3.395 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002238/0.4076, allocations: 0 / 0.5446 GB, free: 3.395 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01351/0.4211, allocations: 4.179 MB / 0.5487 GB, free: 1.859 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.677e-05/0.4212, allocations: 9.031 kB / 0.5487 GB, free: 1.859 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009098/0.4221, allocations: 497.6 kB / 0.5492 GB, free: 1.789 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004156/0.4263, allocations: 0.7501 MB / 0.5499 GB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005099/0.4314, allocations: 2.317 MB / 0.5522 GB, free: 1.066 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002316/0.4316, allocations: 236.4 kB / 0.5524 GB, free: 1.059 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006758/0.4323, allocations: 314.2 kB / 0.5527 GB, free: 1.055 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007899/0.4402, allocations: 4.171 MB / 0.5568 GB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.399e-05/0.4403, allocations: 2.344 kB / 0.5568 GB, free: 15.11 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000372/0.4407, allocations: 135.4 kB / 0.5569 GB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001549/0.4409, allocations: 144.2 kB / 0.5571 GB, free: 14.99 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00691/0.4478, allocations: 3.505 MB / 0.5605 GB, free: 13.13 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0265/0.4743, allocations: 13.04 MB / 0.5732 GB, free: 3.414 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006403/0.4808, allocations: 5.504 MB / 0.5786 GB, free: 13.5 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001996/0.4828, allocations: 1.052 MB / 0.5796 GB, free: 12.45 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006964/0.4898, allocations: 3.045 MB / 0.5826 GB, free: 9.371 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.236e-05/0.4899, allocations: 51.5 kB / 0.5826 GB, free: 9.309 MB / 398.1 MB Notification: Performance of pre-optimization done (n=107): time 4.488e-06/0.4899, allocations: 0 / 0.5826 GB, free: 9.309 MB / 398.1 MB Notification: Performance of matching and sorting (n=110): time 0.0106/0.5005, allocations: 4.61 MB / 0.5871 GB, free: 4.543 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.619e-05/0.5006, allocations: 60.41 kB / 0.5872 GB, free: 4.473 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003534/0.5042, allocations: 1.606 MB / 0.5888 GB, free: 2.859 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001129/0.5043, allocations: 49.7 kB / 0.5888 GB, free: 2.805 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001211/0.5055, allocations: 1.42 MB / 0.5902 GB, free: 1.371 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004231/0.5059, allocations: 393.2 kB / 0.5906 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005428/0.5065, allocations: 275.3 kB / 0.5908 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001133/0.5066, allocations: 305.1 kB / 0.5911 GB, free: 424 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001125/0.5078, allocations: 0.5649 MB / 0.5917 GB, free: 15.85 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001462/0.5092, allocations: 1.058 MB / 0.5927 GB, free: 14.58 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002603/0.5118, allocations: 1.734 MB / 0.5944 GB, free: 12.7 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.395e-05/0.5119, allocations: 4 kB / 0.5944 GB, free: 12.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=192) (initialization): time 0.003764/0.5156, allocations: 2.036 MB / 0.5964 GB, free: 10.72 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.84e-05/0.5157, allocations: 12 kB / 0.5964 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-05/0.5157, allocations: 16 kB / 0.5964 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004158/0.5162, allocations: 134.9 kB / 0.5966 GB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001485/0.5177, allocations: 369.4 kB / 0.5969 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003176/0.5208, allocations: 3.377 MB / 0.6002 GB, free: 6.586 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001658/0.5225, allocations: 76.03 kB / 0.6003 GB, free: 6.512 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001808/0.5227, allocations: 67.98 kB / 0.6003 GB, free: 6.445 MB / 414.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.001885/0.5246, allocations: 0.9632 MB / 0.6013 GB, free: 5.496 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004369/0.5251, allocations: 169.9 kB / 0.6015 GB, free: 5.328 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003552/0.5286, allocations: 1.801 MB / 0.6032 GB, free: 3.48 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.507e-05/0.5287, allocations: 12 kB / 0.6032 GB, free: 3.469 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.459e-05/0.5287, allocations: 4 kB / 0.6032 GB, free: 3.465 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.5287, allocations: 3.984 kB / 0.6032 GB, free: 3.461 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00843/0.5371, allocations: 4.356 MB / 0.6075 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.5372, allocations: 0 / 0.6075 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008536/0.538, allocations: 182.5 kB / 0.6077 GB, free: 14.86 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000874/0.5389, allocations: 310.1 kB / 0.608 GB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.434e-05/0.539, allocations: 35.92 kB / 0.608 GB, free: 14.51 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007727/0.5467, allocations: 8.184 MB / 0.616 GB, free: 5.809 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.5468, allocations: 4.156 kB / 0.616 GB, free: 5.805 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004294/0.5511, allocations: 2.571 MB / 0.6185 GB, free: 3.168 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009953/0.5521, allocations: 366.9 kB / 0.6188 GB, free: 2.789 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004627/0.5526, allocations: 24 kB / 0.6189 GB, free: 2.766 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00111/0.5537, allocations: 59.95 kB / 0.6189 GB, free: 2.707 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002218/0.5539, allocations: 87.5 kB / 0.619 GB, free: 2.625 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.138e-05/0.554, allocations: 32 kB / 0.619 GB, free: 2.594 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002129/0.5561, allocations: 1.091 MB / 0.6201 GB, free: 1.508 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5561, allocations: 0 / 0.6201 GB, free: 1.508 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002164/0.5583, allocations: 0.5118 MB / 0.6206 GB, free: 0.9961 MB / 430.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.004853/0.5632, allocations: 3.175 MB / 0.6237 GB, free: 13.75 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003096/0.5663, allocations: 1.723 MB / 0.6254 GB, free: 12.04 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.5663, allocations: 1 kB / 0.6254 GB, free: 12.04 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002029/0.5684, allocations: 1.211 MB / 0.6266 GB, free: 10.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003218/0.5716, allocations: 0.4995 MB / 0.6271 GB, free: 10.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03475/0.6064, allocations: 17.86 MB / 0.6445 GB, free: 7.812 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003083/0.6095, allocations: 2.237 MB / 0.6467 GB, free: 5.547 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001426/0.611, allocations: 381.9 kB / 0.6471 GB, free: 5.172 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001679/0.6127, allocations: 1.105 MB / 0.6481 GB, free: 4.066 MB / 462.1 MB Notification: Performance of SimCode: time 1.273e-06/0.6127, allocations: 0 / 0.6481 GB, free: 4.066 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09955/0.7122, allocations: 46.3 MB / 0.6933 GB, free: 6.16 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.05/13.77, allocations: 10.3 kB / 0.6934 GB, free: 6.152 MB / 0.4981 GB (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)