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.001064/0.001064, 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.419/1.419, allocations: 222.9 MB / 239.2 MB, free: 4.582 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.001463/0.001463, allocations: 192.4 kB / 289.5 MB, free: 2.312 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03539/0.03539, allocations: 8.791 MB / 348.5 MB, free: 4.684 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003033/0.003034, allocations: 77.62 kB / 411.1 MB, free: 42.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.1466, allocations: 51.57 MB / 462.6 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.EquivalentCircuit): time 0.03231/0.1789, allocations: 18.91 MB / 481.6 MB, free: 11.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01348/0.1925, allocations: 5.019 MB / 486.6 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004718/0.1972, allocations: 163.5 kB / 486.7 MB, free: 6.125 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0192/0.2165, allocations: 8.212 MB / 494.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008497/0.225, allocations: 2.165 MB / 497.1 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004706/0.2297, allocations: 1.584 MB / 498.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01364/0.2433, allocations: 10.67 MB / 0.4974 GB, free: 15.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03838/0.2818, allocations: 25.37 MB / 0.5222 GB, free: 5.863 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2455/0.5273, allocations: 6.036 MB / 0.5281 GB, free: 24.02 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01268/0.5401, allocations: 6.796 MB / 0.5347 GB, free: 23.61 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007613/0.5477, allocations: 1.624 MB / 0.5363 GB, free: 23.61 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01038/0.5582, allocations: 1.913 MB / 0.5382 GB, free: 23.61 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00829/0.5665, allocations: 3.298 MB / 0.5414 GB, free: 23.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02021/0.5867, allocations: 6.394 MB / 0.5477 GB, free: 21.74 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03036/0.6171, allocations: 21.79 MB / 0.5689 GB, free: 12.08 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.945e-06/0.6172, allocations: 0.625 kB / 0.5689 GB, free: 12.08 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.6172, allocations: 0.8125 kB / 0.5689 GB, free: 12.08 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0008805/0.6181, allocations: 2.625 kB / 0.5689 GB, free: 12.08 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.04714/0.6652, allocations: 13.81 MB / 0.5824 GB, free: 3.625 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.674e-05/0.6653, allocations: 9.344 kB / 0.5824 GB, free: 3.625 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0438/0.7091, allocations: 7.852 MB / 0.5901 GB, free: 13.88 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01781/0.727, allocations: 6.556 MB / 0.5965 GB, free: 7.57 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008381/0.7278, allocations: 0.813 MB / 0.5973 GB, free: 6.766 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007024/0.7349, allocations: 1.067 MB / 0.5983 GB, free: 5.711 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0584/0.7933, allocations: 17.77 MB / 0.6157 GB, free: 3.914 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004036/0.7938, allocations: 7.906 kB / 0.6157 GB, free: 3.906 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003448/0.7972, allocations: 456 kB / 0.6161 GB, free: 3.473 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005967/0.7978, allocations: 0.5735 MB / 0.6167 GB, free: 2.895 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03724/0.8351, allocations: 16.21 MB / 0.6325 GB, free: 2.66 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09784/0.933, allocations: 53.33 MB / 0.6846 GB, free: 13.06 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01526/0.9483, allocations: 15.75 MB / 0.7 GB, free: 11.83 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005169/0.9535, allocations: 3.752 MB / 0.7036 GB, free: 8.078 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003586/0.9539, allocations: 194.1 kB / 0.7038 GB, free: 7.883 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.973e-05/0.9539, allocations: 82.95 kB / 0.7039 GB, free: 7.793 MB / 494.1 MB Notification: Performance of pre-optimization done (n=492): time 6.863e-06/0.9539, allocations: 7.469 kB / 0.7039 GB, free: 7.789 MB / 494.1 MB Notification: Performance of matching and sorting (n=492): time 0.2945/1.248, allocations: 10.61 MB / 0.7143 GB, free: 159.1 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.601e-05/1.249, allocations: 135.8 kB / 0.7144 GB, free: 159 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008465/1.257, allocations: 3.494 MB / 0.7178 GB, free: 158.7 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001251/1.258, allocations: 107 kB / 0.7179 GB, free: 158.7 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00364/1.262, allocations: 4.33 MB / 0.7222 GB, free: 156.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002793/1.265, allocations: 1.67 MB / 0.7238 GB, free: 155.5 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002411/1.267, allocations: 1.301 MB / 0.7251 GB, free: 155.4 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.858e-05/1.267, allocations: 303.3 kB / 0.7253 GB, free: 155.1 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005877/1.273, allocations: 3.271 MB / 0.7285 GB, free: 155.1 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008472/1.282, allocations: 5.614 MB / 0.734 GB, free: 152.4 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01323/1.295, allocations: 9.514 MB / 0.7433 GB, free: 147.1 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000244/1.295, allocations: 23.5 kB / 0.7433 GB, free: 147.1 MB / 494.1 MB Notification: Performance of matching and sorting (n=864) (initialization): time 0.01695/1.312, allocations: 10.27 MB / 0.7534 GB, free: 143.1 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.886e-05/1.312, allocations: 35 kB / 0.7534 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001269/1.312, allocations: 74.5 kB / 0.7535 GB, free: 143.1 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002939/1.315, allocations: 1.094 MB / 0.7545 GB, free: 142.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004834/1.32, allocations: 1.516 MB / 0.756 GB, free: 142.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01443/1.335, allocations: 13.63 MB / 0.7693 GB, free: 133.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006126/1.341, allocations: 0.8421 MB / 0.7701 GB, free: 133 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001531/1.342, allocations: 323.4 kB / 0.7705 GB, free: 132.8 MB / 494.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 (790): * Single equations (assignments): 784 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.009499/1.352, allocations: 4.116 MB / 0.7745 GB, free: 129.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001461/1.353, allocations: 395.1 kB / 0.7749 GB, free: 129 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01325/1.367, allocations: 7.867 MB / 0.7825 GB, free: 122.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008465/1.375, allocations: 6.488 MB / 0.7889 GB, free: 116 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.131e-05/1.375, allocations: 15.94 kB / 0.7889 GB, free: 116 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.681e-05/1.375, allocations: 28.64 kB / 0.7889 GB, free: 116 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03655/1.412, allocations: 17.7 MB / 0.8062 GB, free: 98.03 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.117e-05/1.412, allocations: 12 kB / 0.8062 GB, free: 98.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003488/1.415, allocations: 0.9556 MB / 0.8071 GB, free: 97.06 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002639/1.418, allocations: 0.9891 MB / 0.8081 GB, free: 96.07 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006335/1.419, allocations: 124.7 kB / 0.8082 GB, free: 95.95 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01234/1.431, allocations: 13.32 MB / 0.8212 GB, free: 82.12 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.225e-05/1.431, allocations: 23.88 kB / 0.8213 GB, free: 82.09 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01878/1.45, allocations: 12.09 MB / 0.8331 GB, free: 69.47 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003222/1.453, allocations: 1.115 MB / 0.8342 GB, free: 68.33 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001587/1.455, allocations: 108.9 kB / 0.8343 GB, free: 68.22 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003792/1.459, allocations: 323.7 kB / 0.8346 GB, free: 67.91 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001144/1.46, allocations: 399.6 kB / 0.8349 GB, free: 67.51 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005807/1.46, allocations: 164 kB / 0.8351 GB, free: 67.35 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005152/1.466, allocations: 2.366 MB / 0.8374 GB, free: 64.99 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.51e-07/1.466, allocations: 0 / 0.8374 GB, free: 64.99 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.01014/1.476, allocations: 2.656 MB / 0.84 GB, free: 62.32 MB / 494.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 (501): * Single equations (assignments): 495 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.001253/1.477, allocations: 317.4 kB / 0.8403 GB, free: 62.01 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02653/1.504, allocations: 14.88 MB / 0.8548 GB, free: 47.04 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.864e-05/1.504, allocations: 4 kB / 0.8548 GB, free: 47.04 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006946/1.511, allocations: 4.258 MB / 0.859 GB, free: 42.73 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007844/1.519, allocations: 0.9346 MB / 0.8599 GB, free: 41.82 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04848/1.567, allocations: 19.11 MB / 0.8786 GB, free: 22.49 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01311/1.58, allocations: 7.011 MB / 0.8854 GB, free: 15.44 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006642/1.587, allocations: 2.539 MB / 0.8879 GB, free: 12.89 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001074/1.588, allocations: 379.4 kB / 0.8883 GB, free: 12.52 MB / 494.1 MB Notification: Performance of SimCode: time 1.062e-06/1.588, allocations: 0 / 0.8883 GB, free: 12.52 MB / 494.1 MB Notification: Performance of Templates: time 0.4102/1.998, allocations: 69.81 MB / 0.9564 GB, free: 116.6 MB / 494.1 MB 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)