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/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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 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) Running command: translateModel(HanserModelica.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter") translateModel(HanserModelica.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 169 kB / 7.645 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.04098/0.04098, allocations: 8.716 MB / 16.79 MB, free: 3.387 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.544/1.544, allocations: 221.5 MB / 240.9 MB, free: 13.2 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00117/0.00117, allocations: 92.86 kB / 293.8 MB, free: 7.203 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.612e-05/1.623e-05, allocations: 4 kB / 352.6 MB, free: 1.266 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1174, allocations: 52.54 MB / 405.2 MB, free: 12.67 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3711/0.4886, allocations: 109.4 MB / 0.5026 GB, free: 10.39 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000207/0.4888, allocations: 74.64 kB / 0.5026 GB, free: 10.36 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5344/1.023, allocations: 77.96 MB / 0.5788 GB, free: 74.72 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.005e-06/1.023, allocations: 3.562 kB / 0.5788 GB, free: 74.72 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003468/1.024, allocations: 73.3 kB / 0.5788 GB, free: 74.71 MB / 442.7 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.01374/1.037, allocations: 3.103 MB / 0.5819 GB, free: 73.68 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.856e-05/1.038, allocations: 13.48 kB / 0.5819 GB, free: 73.68 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007404/1.045, allocations: 0.6876 MB / 0.5826 GB, free: 73.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01141/1.056, allocations: 3.226 MB / 0.5857 GB, free: 72.99 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001693/1.057, allocations: 107.3 kB / 0.5858 GB, free: 72.99 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001136/1.058, allocations: 183.2 kB / 0.586 GB, free: 72.99 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007147/1.065, allocations: 2.975 MB / 0.5889 GB, free: 72.97 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007183/1.072, allocations: 3.563 MB / 0.5924 GB, free: 72.57 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.297e-05/1.072, allocations: 10.47 kB / 0.5924 GB, free: 72.57 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002889/1.073, allocations: 2.844 kB / 0.5924 GB, free: 72.57 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001272/1.073, allocations: 140.4 kB / 0.5925 GB, free: 72.56 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02116/1.094, allocations: 12.59 MB / 0.6048 GB, free: 69.67 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004707/1.099, allocations: 5.374 MB / 0.6101 GB, free: 65.51 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001805/1.1, allocations: 0.9823 MB / 0.611 GB, free: 65.48 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006425/1.107, allocations: 2.943 MB / 0.6139 GB, free: 64.8 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.354e-05/1.107, allocations: 50.52 kB / 0.6139 GB, free: 64.77 MB / 442.7 MB Notification: Performance of pre-optimization done (n=105): time 4.559e-06/1.107, allocations: 0.9375 kB / 0.6139 GB, free: 64.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=108): time 0.008272/1.115, allocations: 3.538 MB / 0.6174 GB, free: 63.66 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.39e-05/1.115, allocations: 64.03 kB / 0.6175 GB, free: 63.59 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002255/1.118, allocations: 1.127 MB / 0.6186 GB, free: 63.43 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.773e-05/1.118, allocations: 35 kB / 0.6186 GB, free: 63.39 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008638/1.119, allocations: 1.428 MB / 0.62 GB, free: 62.66 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002811/1.119, allocations: 371.5 kB / 0.6203 GB, free: 62.42 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.912e-05/1.119, allocations: 1 kB / 0.6203 GB, free: 62.42 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/1.119, allocations: 363.1 kB / 0.6207 GB, free: 62.12 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007628/1.12, allocations: 0.4906 MB / 0.6212 GB, free: 62.11 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001141/1.121, allocations: 0.9723 MB / 0.6221 GB, free: 61.52 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001647/1.123, allocations: 0.8013 MB / 0.6229 GB, free: 61.49 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-05/1.123, allocations: 5.156 kB / 0.6229 GB, free: 61.49 MB / 442.7 MB Notification: Performance of matching and sorting (n=190) (initialization): time 0.003744/1.126, allocations: 1.888 MB / 0.6247 GB, free: 61.22 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.281e-05/1.127, allocations: 11.09 kB / 0.6248 GB, free: 61.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.705e-05/1.127, allocations: 15.72 kB / 0.6248 GB, free: 61.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004338/1.127, allocations: 135 kB / 0.6249 GB, free: 61.19 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001544/1.129, allocations: 371.9 kB / 0.6253 GB, free: 61.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002185/1.131, allocations: 2.955 MB / 0.6281 GB, free: 58.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001491/1.132, allocations: 49.62 kB / 0.6282 GB, free: 58.71 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001778/1.132, allocations: 66.83 kB / 0.6283 GB, free: 58.71 MB / 442.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (183): * Single equations (assignments): 180 * 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%) 1,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002722/1.133, allocations: 148.7 kB / 0.6284 GB, free: 58.59 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003291/1.133, allocations: 160.9 kB / 0.6285 GB, free: 58.51 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003422/1.137, allocations: 1.731 MB / 0.6302 GB, free: 58.17 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.211e-05/1.137, allocations: 10.91 kB / 0.6302 GB, free: 58.17 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/1.137, allocations: 8.328 kB / 0.6303 GB, free: 58.17 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.312e-05/1.137, allocations: 3.703 kB / 0.6303 GB, free: 58.17 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007274/1.144, allocations: 3.835 MB / 0.634 GB, free: 56.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.266e-06/1.144, allocations: 4.875 kB / 0.634 GB, free: 56.59 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009378/1.145, allocations: 175.7 kB / 0.6342 GB, free: 56.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008718/1.146, allocations: 306.1 kB / 0.6345 GB, free: 56.47 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.683e-05/1.146, allocations: 18.53 kB / 0.6345 GB, free: 56.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00527/1.151, allocations: 7.155 MB / 0.6415 GB, free: 50.27 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/1.151, allocations: 3 kB / 0.6415 GB, free: 50.27 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003669/1.155, allocations: 2.542 MB / 0.644 GB, free: 48.87 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008773/1.156, allocations: 342.8 kB / 0.6443 GB, free: 48.61 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001949/1.156, allocations: 11.84 kB / 0.6443 GB, free: 48.61 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007686/1.157, allocations: 38.56 kB / 0.6443 GB, free: 48.61 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002211/1.157, allocations: 97.14 kB / 0.6444 GB, free: 48.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.326e-05/1.157, allocations: 31.22 kB / 0.6445 GB, free: 48.58 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00126/1.158, allocations: 0.8374 MB / 0.6453 GB, free: 48.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.158, allocations: 3.594 kB / 0.6453 GB, free: 48.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002431/1.161, allocations: 485.6 kB / 0.6457 GB, free: 48.18 MB / 442.7 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.core.Phi.re,smr.stator.core.Phi.im,smr.stator.zeroInductor.i0,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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 80 * 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.0005463/1.161, allocations: 351.4 kB / 0.6461 GB, free: 48.04 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002076/1.163, allocations: 1.528 MB / 0.6476 GB, free: 47.29 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/1.163, allocations: 2.844 kB / 0.6476 GB, free: 47.29 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001307/1.165, allocations: 1.118 MB / 0.6487 GB, free: 46.59 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001903/1.167, allocations: 359.6 kB / 0.649 GB, free: 46.5 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009263/1.176, allocations: 4.25 MB / 0.6532 GB, free: 44.59 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002002/1.178, allocations: 2.294 MB / 0.6554 GB, free: 43.54 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001708/1.18, allocations: 349.2 kB / 0.6557 GB, free: 43.48 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000281/1.18, allocations: 107.8 kB / 0.6558 GB, free: 43.47 MB / 442.7 MB Notification: Performance of SimCode: time 1.913e-06/1.18, allocations: 0 / 0.6558 GB, free: 43.47 MB / 442.7 MB Notification: Performance of Templates: time 0.04352/1.223, allocations: 20.23 MB / 0.6756 GB, free: 42.37 MB / 442.7 MB make -j1 -f HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.makefile (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 & ./HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.SynchronousMachines.SMR_Inverter.pipe 2>&1)