Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|voltageSource.plug_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar") translateModel(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|voltageSource.plug_p.reference.gamma",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001092/0.001092, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.207/1.207, allocations: 205.1 MB / 223.7 MB, free: 8.484 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009725/0.0009725, allocations: 102.9 kB / 271.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007518/0.0007518, allocations: 43.94 kB / 327.2 MB, free: 324 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1923/0.193, allocations: 46.62 MB / 373.8 MB, free: 45.67 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar): time 0.007972/0.201, allocations: 9.951 MB / 383.8 MB, free: 37.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004653/0.2057, allocations: 2.794 MB / 386.6 MB, free: 35.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007892/0.2065, allocations: 57.53 kB / 386.6 MB, free: 35.63 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006187/0.2128, allocations: 3.999 MB / 390.6 MB, free: 32.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002396/0.2152, allocations: 0.9356 MB / 391.6 MB, free: 31.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001377/0.2166, allocations: 0.7798 MB / 392.3 MB, free: 30.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002892/0.2195, allocations: 4.206 MB / 396.5 MB, free: 26.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008718/0.2282, allocations: 9.241 MB / 405.8 MB, free: 17.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00205/0.2303, allocations: 2.224 MB / 408 MB, free: 15.15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002003/0.2323, allocations: 2.713 MB / 410.7 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005072/0.2329, allocations: 0.5195 MB / 411.2 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001095/0.234, allocations: 0.7303 MB / 412 MB, free: 11.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006002/0.2346, allocations: 1.153 MB / 413.1 MB, free: 10.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001532/0.2361, allocations: 2.493 MB / 415.6 MB, free: 7.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00469/0.2408, allocations: 8.916 MB / 424.5 MB, free: 14.58 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2408, allocations: 3.938 kB / 424.5 MB, free: 14.57 MB / 314.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.2408, allocations: 0 / 424.5 MB, free: 14.57 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.019e-05/0.2409, allocations: 4 kB / 424.5 MB, free: 14.57 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1303 * Number of variables: 1303 Notification: Performance of Generate backend data structure: time 0.01035/0.2513, allocations: 5.59 MB / 430.1 MB, free: 8.914 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.2513, allocations: 8.031 kB / 430.1 MB, free: 8.906 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01177/0.2631, allocations: 2.391 MB / 432.5 MB, free: 6.508 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003908/0.267, allocations: 2.377 MB / 434.9 MB, free: 4.082 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002174/0.2673, allocations: 365.8 kB / 435.3 MB, free: 3.723 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006055/0.2679, allocations: 480 kB / 435.7 MB, free: 3.254 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009917/0.2778, allocations: 6.663 MB / 442.4 MB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.473e-05/0.2779, allocations: 7.844 kB / 442.4 MB, free: 12.54 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004008/0.2783, allocations: 200 kB / 442.6 MB, free: 12.35 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001767/0.2785, allocations: 226.1 kB / 442.8 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008449/0.2869, allocations: 6.133 MB / 449 MB, free: 5.98 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02575/0.3127, allocations: 22.64 MB / 471.6 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009234/0.322, allocations: 10.84 MB / 482.4 MB, free: 2.055 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001133/0.3231, allocations: 0.8617 MB / 483.3 MB, free: 1.195 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004711/0.3279, allocations: 3.507 MB / 486.8 MB, free: 13.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.222e-05/0.3279, allocations: 34.55 kB / 486.8 MB, free: 13.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=12): time 2.074e-06/0.3279, allocations: 0 / 486.8 MB, free: 13.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=12): time 0.0005815/0.3285, allocations: 339.8 kB / 487.2 MB, free: 12.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.16e-05/0.3285, allocations: 55.41 kB / 487.2 MB, free: 12.89 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002643/0.3312, allocations: 2.133 MB / 489.4 MB, free: 10.75 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.038e-05/0.3312, allocations: 33.7 kB / 489.4 MB, free: 10.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001312/0.3325, allocations: 2.367 MB / 491.8 MB, free: 8.312 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.936e-05/0.3326, allocations: 95.33 kB / 491.8 MB, free: 8.219 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007026/0.3334, allocations: 0.5583 MB / 492.4 MB, free: 7.652 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001162/0.3335, allocations: 357.9 kB / 492.8 MB, free: 7.297 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001115/0.3346, allocations: 0.8479 MB / 493.6 MB, free: 6.445 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001873/0.3365, allocations: 2.274 MB / 495.9 MB, free: 3.465 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002927/0.3394, allocations: 3.035 MB / 498.9 MB, free: 15.73 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.111e-05/0.3395, allocations: 16 kB / 498.9 MB, free: 15.71 MB / 394.7 MB Notification: Performance of matching and sorting (n=314) (initialization): time 0.004332/0.3438, allocations: 3.088 MB / 0.4903 GB, free: 12.62 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.211e-05/0.3439, allocations: 28 kB / 0.4903 GB, free: 12.59 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.868e-05/0.3439, allocations: 48 kB / 0.4903 GB, free: 12.54 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.962e-05/0.344, allocations: 68 kB / 0.4904 GB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0015/0.3455, allocations: 0.5732 MB / 0.4909 GB, free: 11.9 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.149e-05/0.3456, allocations: 99.59 kB / 0.491 GB, free: 11.8 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001763/0.3474, allocations: 404.5 kB / 0.4914 GB, free: 11.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001688/0.3475, allocations: 148 kB / 0.4916 GB, free: 11.26 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 229 * 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 (310): * Single equations (assignments): 306 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002116/0.3497, allocations: 1.734 MB / 0.4933 GB, free: 9.516 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002161/0.3499, allocations: 134.2 kB / 0.4934 GB, free: 9.383 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004453/0.3503, allocations: 309.2 kB / 0.4937 GB, free: 9.074 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001781/0.3505, allocations: 173.6 kB / 0.4939 GB, free: 8.898 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.3506, allocations: 0 / 0.4939 GB, free: 8.898 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.3506, allocations: 3.984 kB / 0.4939 GB, free: 8.895 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004988/0.3556, allocations: 3.15 MB / 0.4969 GB, free: 5.688 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.3556, allocations: 0 / 0.4969 GB, free: 5.688 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.026e-05/0.3557, allocations: 15.94 kB / 0.4969 GB, free: 5.672 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.3557, allocations: 3.938 kB / 0.497 GB, free: 5.668 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.764e-05/0.3557, allocations: 11.94 kB / 0.497 GB, free: 5.656 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3557, allocations: 4.031 kB / 0.497 GB, free: 5.652 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3557, allocations: 0 / 0.497 GB, free: 5.652 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002787/0.3585, allocations: 2.569 MB / 0.4995 GB, free: 2.93 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003297/0.3588, allocations: 227.3 kB / 0.4997 GB, free: 2.688 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/0.359, allocations: 0 / 0.4997 GB, free: 2.688 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004327/0.3594, allocations: 31.95 kB / 0.4997 GB, free: 2.656 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.593e-05/0.3594, allocations: 4 kB / 0.4997 GB, free: 2.652 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.3595, allocations: 7.984 kB / 0.4997 GB, free: 2.645 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001645/0.3611, allocations: 1.4 MB / 0.5011 GB, free: 1.25 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3611, allocations: 0 / 0.5011 GB, free: 1.25 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002491/0.3636, allocations: 1.096 MB / 0.5022 GB, free: 152 kB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (voltageSource.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 (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1378/0.5014, allocations: 150.4 kB / 0.5023 GB, free: 121.3 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003452/0.5049, allocations: 1.536 MB / 0.5038 GB, free: 121.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.505, allocations: 4.5 kB / 0.5038 GB, free: 121.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001585/0.5051, allocations: 76.42 kB / 0.5039 GB, free: 121.1 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002203/0.5074, allocations: 307.3 kB / 0.5042 GB, free: 121.1 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0117/0.5191, allocations: 8.24 MB / 0.5122 GB, free: 116.3 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003415/0.5225, allocations: 3.139 MB / 0.5153 GB, free: 114.9 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001883/0.5244, allocations: 0.7989 MB / 0.5161 GB, free: 114.8 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002038/0.5246, allocations: 96.83 kB / 0.5162 GB, free: 114.8 MB / 394.7 MB Notification: Performance of SimCode: time 6.72e-07/0.5246, allocations: 0 / 0.5162 GB, free: 114.8 MB / 394.7 MB Notification: Performance of Templates: time 0.02597/0.5506, allocations: 17.65 MB / 0.5334 GB, free: 100.6 MB / 394.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.sim & ./Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/MultiPhase/Examples/BalancingStar/BalancingStar.csv","../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches