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.004386/0.004386, allocations: 98.27 kB / 15.73 MB, free: 5.98 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.321/1.321, allocations: 222.9 MB / 239.4 MB, free: 4.516 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.00136/0.00136, allocations: 192.5 kB / 289.7 MB, free: 2.242 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03412/0.03412, allocations: 8.804 MB / 348.7 MB, free: 4.609 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 83.86 kB / 463.9 MB, free: 13.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08864/0.09006, allocations: 51.55 MB / 0.5034 GB, free: 9.598 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Machines.EquivalentCircuit): time 0.01693/0.107, allocations: 18.93 MB / 0.5219 GB, free: 6.578 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00919/0.1162, allocations: 5.027 MB / 0.5268 GB, free: 1.535 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002948/0.1192, allocations: 155.6 kB / 0.5269 GB, free: 1.383 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.2004/0.3196, allocations: 8.212 MB / 0.5349 GB, free: 3.898 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006681/0.3263, allocations: 2.156 MB / 0.5371 GB, free: 3.832 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003975/0.3303, allocations: 1.586 MB / 0.5386 GB, free: 3.793 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01283/0.3432, allocations: 10.76 MB / 0.5491 GB, free: 2.262 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03617/0.3794, allocations: 25.34 MB / 0.5738 GB, free: 4.801 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008845/0.3883, allocations: 6.054 MB / 0.5798 GB, free: 15.24 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01094/0.3992, allocations: 6.767 MB / 0.5864 GB, free: 8.676 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005882/0.4052, allocations: 1.623 MB / 0.588 GB, free: 7.055 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006598/0.4118, allocations: 1.912 MB / 0.5898 GB, free: 5.148 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004986/0.4168, allocations: 3.3 MB / 0.593 GB, free: 1.898 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01264/0.4295, allocations: 6.397 MB / 0.5993 GB, free: 11.56 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02488/0.4544, allocations: 21.96 MB / 0.6207 GB, free: 5.98 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.642e-06/0.4544, allocations: 0 / 0.6207 GB, free: 5.98 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.4544, allocations: 0 / 0.6207 GB, free: 5.98 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0006382/0.455, allocations: 0 / 0.6207 GB, free: 5.98 MB / 430.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.0383/0.4934, allocations: 14.02 MB / 0.6344 GB, free: 7.961 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.4934, allocations: 8.031 kB / 0.6344 GB, free: 7.953 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04104/0.5345, allocations: 7.938 MB / 0.6422 GB, free: 104 kB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01302/0.5475, allocations: 6.784 MB / 0.6488 GB, free: 9.289 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006481/0.5482, allocations: 0.8062 MB / 0.6496 GB, free: 8.492 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003815/0.552, allocations: 1.059 MB / 0.6506 GB, free: 7.441 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03804/0.5901, allocations: 17.77 MB / 0.668 GB, free: 5.641 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002634/0.5904, allocations: 11.91 kB / 0.668 GB, free: 5.629 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001612/0.592, allocations: 453.1 kB / 0.6684 GB, free: 5.195 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004932/0.5925, allocations: 0.5735 MB / 0.669 GB, free: 4.617 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02989/0.6224, allocations: 16.21 MB / 0.6848 GB, free: 4.379 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4444/1.067, allocations: 52.84 MB / 0.7364 GB, free: 144.8 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01432/1.081, allocations: 15.75 MB / 0.7518 GB, free: 135.1 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005635/1.087, allocations: 3.757 MB / 0.7555 GB, free: 135 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004753/1.087, allocations: 191 kB / 0.7556 GB, free: 134.9 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.768e-05/1.087, allocations: 93.7 kB / 0.7557 GB, free: 134.9 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=492): time 8.125e-06/1.087, allocations: 0 / 0.7557 GB, free: 134.9 MB / 0.5294 GB Notification: Performance of matching and sorting (n=492): time 0.02004/1.108, allocations: 10.65 MB / 0.7661 GB, free: 134.2 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/1.108, allocations: 129 kB / 0.7663 GB, free: 134.1 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004064/1.112, allocations: 3.5 MB / 0.7697 GB, free: 133.9 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0004453/1.112, allocations: 104.1 kB / 0.7698 GB, free: 133.9 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001855/1.114, allocations: 4.496 MB / 0.7742 GB, free: 132.1 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001156/1.115, allocations: 1.752 MB / 0.7759 GB, free: 131.2 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001513/1.117, allocations: 1.311 MB / 0.7772 GB, free: 131 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 3.948e-05/1.117, allocations: 305.1 kB / 0.7774 GB, free: 130.7 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00353/1.12, allocations: 3.266 MB / 0.7806 GB, free: 129.5 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004519/1.125, allocations: 5.616 MB / 0.7861 GB, free: 125.4 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008283/1.133, allocations: 9.509 MB / 0.7954 GB, free: 119.4 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.233e-05/1.133, allocations: 22.75 kB / 0.7954 GB, free: 119.4 MB / 0.5294 GB Notification: Performance of matching and sorting (n=864) (initialization): time 0.01256/1.146, allocations: 10.29 MB / 0.8055 GB, free: 115.5 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 5.346e-05/1.146, allocations: 37.25 kB / 0.8055 GB, free: 115.5 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-05/1.146, allocations: 73.81 kB / 0.8056 GB, free: 115.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00249/1.148, allocations: 1.093 MB / 0.8066 GB, free: 115.2 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004334/1.153, allocations: 1.519 MB / 0.8081 GB, free: 115.1 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01136/1.164, allocations: 13.63 MB / 0.8214 GB, free: 104.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004152/1.168, allocations: 0.8683 MB / 0.8223 GB, free: 104.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005208/1.169, allocations: 324 kB / 0.8226 GB, free: 103.8 MB / 0.5294 GB 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.004675/1.174, allocations: 4.11 MB / 0.8266 GB, free: 99.65 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006107/1.174, allocations: 413.3 kB / 0.827 GB, free: 99.24 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009855/1.184, allocations: 7.86 MB / 0.8347 GB, free: 91.32 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007118/1.191, allocations: 6.488 MB / 0.841 GB, free: 84.78 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.735e-05/1.191, allocations: 12 kB / 0.841 GB, free: 84.77 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.609e-05/1.191, allocations: 25.22 kB / 0.841 GB, free: 84.75 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02002/1.211, allocations: 17.54 MB / 0.8582 GB, free: 67.04 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.917e-05/1.211, allocations: 16.03 kB / 0.8582 GB, free: 67.02 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002944/1.214, allocations: 0.9517 MB / 0.8591 GB, free: 66.07 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002186/1.216, allocations: 0.9848 MB / 0.8601 GB, free: 65.07 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002498/1.217, allocations: 128 kB / 0.8602 GB, free: 64.95 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01077/1.227, allocations: 13.31 MB / 0.8732 GB, free: 51.11 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/1.227, allocations: 19.88 kB / 0.8732 GB, free: 51.09 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01267/1.24, allocations: 12.12 MB / 0.8851 GB, free: 38.42 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001696/1.242, allocations: 1.145 MB / 0.8862 GB, free: 37.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004607/1.242, allocations: 108.1 kB / 0.8863 GB, free: 37.15 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002091/1.244, allocations: 319.6 kB / 0.8866 GB, free: 36.84 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005667/1.245, allocations: 403.7 kB / 0.887 GB, free: 36.44 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002618/1.245, allocations: 168 kB / 0.8871 GB, free: 36.28 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.002402/1.248, allocations: 2.354 MB / 0.8894 GB, free: 33.93 MB / 0.5294 GB Notification: Performance of sort global known variables: time 6.91e-07/1.248, allocations: 0 / 0.8894 GB, free: 33.93 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.005117/1.253, allocations: 2.69 MB / 0.8921 GB, free: 31.23 MB / 0.5294 GB 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.0005013/1.253, allocations: 318 kB / 0.8924 GB, free: 30.91 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.009386/1.263, allocations: 8.623 MB / 0.9008 GB, free: 22.2 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/1.263, allocations: 4 kB / 0.9008 GB, free: 22.2 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.004434/1.267, allocations: 4.26 MB / 0.9049 GB, free: 17.89 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004/1.271, allocations: 0.9441 MB / 0.9059 GB, free: 16.96 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02242/1.294, allocations: 19.15 MB / 0.9246 GB, free: 13.58 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006315/1.3, allocations: 7.007 MB / 0.9314 GB, free: 6.531 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005534/1.306, allocations: 2.538 MB / 0.9339 GB, free: 3.984 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00106/1.307, allocations: 379.4 kB / 0.9342 GB, free: 3.613 MB / 0.545 GB Notification: Performance of SimCode: time 7.12e-07/1.307, allocations: 0 / 0.9342 GB, free: 3.613 MB / 0.545 GB Notification: Performance of Templates: time 0.3222/1.629, allocations: 67.26 MB / 0.9999 GB, free: 152.7 MB / 0.5607 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)