Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.EquivalentCircuit.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: translateModel(HanserModelica.Machines.EquivalentCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Machines.EquivalentCircuit") translateModel(HanserModelica.Machines.EquivalentCircuit,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Machines.EquivalentCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007208/0.0007208, allocations: 91.69 kB / 16.02 MB, free: 80 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.268/1.268, allocations: 223.3 MB / 240 MB, free: 5.504 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.0009502/0.0009502, allocations: 172.4 kB / 291.3 MB, free: 2.184 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03432/0.03432, allocations: 8.805 MB / 351.2 MB, free: 4.59 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003339/0.000334, allocations: 11.59 kB / 414.5 MB, free: 42.8 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06689/0.06724, allocations: 52.55 MB / 467 MB, free: 13.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.EquivalentCircuit): time 0.01614/0.08342, allocations: 17.62 MB / 484.6 MB, free: 11.42 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00686/0.0903, allocations: 4.961 MB / 489.6 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008968/0.09121, allocations: 143.6 kB / 489.8 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002098/0.09332, allocations: 1.287 MB / 491 MB, free: 5.008 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003762/0.09709, allocations: 1.953 MB / 493 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002709/0.09981, allocations: 1.472 MB / 494.5 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009256/0.1091, allocations: 10.78 MB / 0.4934 GB, free: 6.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03428/0.1434, allocations: 24.92 MB / 0.5177 GB, free: 13.71 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004749/0.1481, allocations: 4.278 MB / 0.5219 GB, free: 9.418 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005033/0.1532, allocations: 5.15 MB / 0.5269 GB, free: 4.246 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008426/0.154, allocations: 0.6562 MB / 0.5276 GB, free: 3.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001793/0.1558, allocations: 0.945 MB / 0.5285 GB, free: 2.645 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00154/0.1574, allocations: 2.094 MB / 0.5306 GB, free: 0.543 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.148/0.3054, allocations: 5.062 MB / 0.5355 GB, free: 26.21 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01198/0.3174, allocations: 18.47 MB / 0.5535 GB, free: 20.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3175, allocations: 1.438 kB / 0.5535 GB, free: 20.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.3175, allocations: 0 / 0.5535 GB, free: 20.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003436/0.3178, allocations: 0 / 0.5535 GB, free: 20.62 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: 3006 * Number of variables: 3006 Notification: Performance of Generate backend data structure: time 0.02672/0.3445, allocations: 11.44 MB / 0.5647 GB, free: 14.95 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.494e-05/0.3446, allocations: 9.719 kB / 0.5647 GB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04024/0.3848, allocations: 7.889 MB / 0.5724 GB, free: 11.9 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008762/0.3936, allocations: 6.567 MB / 0.5788 GB, free: 10.11 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003806/0.394, allocations: 0.8125 MB / 0.5796 GB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001627/0.3956, allocations: 1.069 MB / 0.5807 GB, free: 10.08 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02444/0.4201, allocations: 17.81 MB / 0.5981 GB, free: 12.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001947/0.4203, allocations: 7.906 kB / 0.5981 GB, free: 12.49 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001206/0.4215, allocations: 457.8 kB / 0.5985 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005196/0.422, allocations: 0.5774 MB / 0.5991 GB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02494/0.447, allocations: 16.25 MB / 0.6149 GB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06761/0.5146, allocations: 53.47 MB / 0.6671 GB, free: 5.426 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01482/0.5295, allocations: 15.81 MB / 0.6826 GB, free: 4.121 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004936/0.5344, allocations: 3.809 MB / 0.6863 GB, free: 320 kB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003237/0.5348, allocations: 201.5 kB / 0.6865 GB, free: 116 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.801e-05/0.5348, allocations: 86.98 kB / 0.6866 GB, free: 20 kB / 462.1 MB Notification: Performance of pre-optimization done (n=504): time 6.773e-06/0.5348, allocations: 0 / 0.6866 GB, free: 20 kB / 462.1 MB Notification: Performance of matching and sorting (n=504): time 0.02048/0.5553, allocations: 10.9 MB / 0.6972 GB, free: 5.039 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.667e-05/0.5554, allocations: 133.5 kB / 0.6973 GB, free: 4.887 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004425/0.5599, allocations: 3.494 MB / 0.7008 GB, free: 1.383 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002656/0.5601, allocations: 105.7 kB / 0.7009 GB, free: 1.273 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1612/0.7213, allocations: 4.32 MB / 0.7051 GB, free: 153.2 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001593/0.7229, allocations: 1.705 MB / 0.7067 GB, free: 152.1 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001125/0.7241, allocations: 0.5318 MB / 0.7073 GB, free: 152.1 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.482e-05/0.7241, allocations: 303.7 kB / 0.7076 GB, free: 151.8 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004974/0.7291, allocations: 3.351 MB / 0.7108 GB, free: 151.8 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005591/0.7347, allocations: 5.689 MB / 0.7164 GB, free: 149 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00943/0.7441, allocations: 9.665 MB / 0.7258 GB, free: 143.2 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-05/0.7442, allocations: 23.28 kB / 0.7258 GB, free: 143.2 MB / 478.1 MB Notification: Performance of matching and sorting (n=876) (initialization): time 0.01374/0.7579, allocations: 10.42 MB / 0.736 GB, free: 139.2 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.616e-05/0.758, allocations: 37.09 kB / 0.7361 GB, free: 139.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.556e-05/0.7581, allocations: 79.19 kB / 0.7361 GB, free: 139.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00257/0.7606, allocations: 1.08 MB / 0.7372 GB, free: 139 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004592/0.7653, allocations: 1.511 MB / 0.7387 GB, free: 138.2 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01129/0.7765, allocations: 12.48 MB / 0.7509 GB, free: 126.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003752/0.7803, allocations: 0.854 MB / 0.7517 GB, free: 125.8 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004124/0.7807, allocations: 319.7 kB / 0.752 GB, free: 125.4 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 341 * 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 (796): * Single equations (assignments): 784 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 {(4,30,100.0%), (1,13,100.0%), (1,13,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004995/0.7857, allocations: 4.115 MB / 0.756 GB, free: 122 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005262/0.7863, allocations: 399 kB / 0.7564 GB, free: 121.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01089/0.7972, allocations: 8.009 MB / 0.7642 GB, free: 114.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008027/0.8052, allocations: 6.643 MB / 0.7707 GB, free: 108.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.648e-05/0.8052, allocations: 16 kB / 0.7707 GB, free: 108.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.821e-05/0.8053, allocations: 30.14 kB / 0.7707 GB, free: 108.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0212/0.8265, allocations: 17.95 MB / 0.7883 GB, free: 90.36 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.038e-05/0.8265, allocations: 12 kB / 0.7883 GB, free: 90.34 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00327/0.8298, allocations: 0.9517 MB / 0.7892 GB, free: 89.39 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002314/0.8321, allocations: 0.983 MB / 0.7902 GB, free: 88.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002634/0.8324, allocations: 124 kB / 0.7903 GB, free: 88.28 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01097/0.8434, allocations: 12.21 MB / 0.8022 GB, free: 75.55 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.928e-06/0.8434, allocations: 19.94 kB / 0.8022 GB, free: 75.53 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0134/0.8568, allocations: 12.38 MB / 0.8143 GB, free: 62.63 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001626/0.8585, allocations: 1.143 MB / 0.8154 GB, free: 61.46 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004697/0.8589, allocations: 112 kB / 0.8155 GB, free: 61.35 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00231/0.8612, allocations: 319.7 kB / 0.8158 GB, free: 61.04 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005489/0.8618, allocations: 401.6 kB / 0.8162 GB, free: 60.65 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002729/0.8621, allocations: 164 kB / 0.8164 GB, free: 60.49 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002613/0.8647, allocations: 2.358 MB / 0.8187 GB, free: 58.13 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.8647, allocations: 0 / 0.8187 GB, free: 58.13 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00558/0.8703, allocations: 2.66 MB / 0.8213 GB, free: 55.46 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 60 * Number of states: 2 (sineVoltage_m.plug_p.reference.gamma,sineVoltage_e.plug_p.reference.gamma) * 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 (507): * Single equations (assignments): 495 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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 {(4,30,100.0%), (1,13,100.0%), (1,13,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005339/0.8708, allocations: 333.9 kB / 0.8216 GB, free: 55.14 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.009533/0.8804, allocations: 8.732 MB / 0.8301 GB, free: 46.32 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.553e-06/0.8804, allocations: 5.812 kB / 0.8301 GB, free: 46.32 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004733/0.8851, allocations: 4.345 MB / 0.8344 GB, free: 41.92 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008952/0.8941, allocations: 0.899 MB / 0.8353 GB, free: 41.03 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02321/0.9173, allocations: 23.41 MB / 0.8581 GB, free: 17.38 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005152/0.9225, allocations: 6.804 MB / 0.8648 GB, free: 10.54 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001451/0.924, allocations: 427.4 kB / 0.8652 GB, free: 10.12 MB / 478.1 MB Notification: Performance of SimCode: time 3.8e-07/0.924, allocations: 4 kB / 0.8652 GB, free: 10.11 MB / 478.1 MB Notification: Performance of Templates: time 0.5888/1.513, allocations: 352.9 MB / 1.21 GB, free: 52.89 MB / 0.4981 GB make -j1 -f HanserModelica_HanserModelica.Machines.EquivalentCircuit.makefile (rm -f HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe ; mkfifo HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe >> ../files/HanserModelica_HanserModelica.Machines.EquivalentCircuit.sim & ./HanserModelica_HanserModelica.Machines.EquivalentCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Machines.EquivalentCircuit.pipe 2>&1)