Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.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/Complex 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) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 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(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|voltageSource.plug_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar") translateModel(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|voltageSource.plug_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 108.3 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001422/0.001422, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.276/1.276, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009191/0.0009191, allocations: 50.52 kB / 299.9 MB, free: 6.316 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07945/0.08039, allocations: 49.45 MB / 349.4 MB, free: 4.855 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar): time 0.009652/0.09006, allocations: 9.603 MB / 359 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00438/0.09446, allocations: 2.67 MB / 361.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001098/0.09558, allocations: 75.75 kB / 361.7 MB, free: 8.445 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008258/0.1039, allocations: 3.971 MB / 365.7 MB, free: 4.469 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002733/0.1066, allocations: 0.8356 MB / 366.6 MB, free: 3.633 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001944/0.1086, allocations: 0.7638 MB / 367.3 MB, free: 2.867 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1447/0.2533, allocations: 3.843 MB / 371.2 MB, free: 9.148 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01109/0.2644, allocations: 9.185 MB / 380.3 MB, free: 7.176 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002552/0.267, allocations: 2.124 MB / 382.5 MB, free: 6.352 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002517/0.2695, allocations: 2.582 MB / 385.1 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007732/0.2703, allocations: 0.5109 MB / 385.6 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001359/0.2717, allocations: 0.7301 MB / 386.3 MB, free: 5.074 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007708/0.2724, allocations: 1.075 MB / 387.4 MB, free: 4.352 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002027/0.2745, allocations: 2.402 MB / 389.8 MB, free: 2.754 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005793/0.2803, allocations: 8.734 MB / 398.5 MB, free: 14.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.2803, allocations: 3.938 kB / 398.5 MB, free: 14.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2803, allocations: 0 / 398.5 MB, free: 14.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.766e-05/0.2804, allocations: 0 / 398.5 MB, free: 14.25 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1224 * Number of variables: 1224 Notification: Performance of Generate backend data structure: time 0.01073/0.2911, allocations: 5.329 MB / 403.8 MB, free: 10.24 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.2912, allocations: 12.03 kB / 403.8 MB, free: 10.23 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007079/0.2983, allocations: 1.297 MB / 405.1 MB, free: 8.945 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00377/0.3021, allocations: 2.511 MB / 407.7 MB, free: 6.512 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002299/0.3023, allocations: 344 kB / 408 MB, free: 6.176 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006193/0.3029, allocations: 459.6 kB / 408.4 MB, free: 5.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00971/0.3127, allocations: 6.105 MB / 414.5 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.181e-05/0.3128, allocations: 4 kB / 414.6 MB, free: 15.58 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003993/0.3132, allocations: 187.1 kB / 414.7 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001677/0.3133, allocations: 201.5 kB / 414.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007977/0.3213, allocations: 5.298 MB / 420.2 MB, free: 9.895 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02476/0.3461, allocations: 21.02 MB / 441.2 MB, free: 4.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005714/0.3518, allocations: 5.61 MB / 446.9 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009604/0.3528, allocations: 0.6981 MB / 447.6 MB, free: 13.52 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001328/0.353, allocations: 109.2 kB / 447.7 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.353, allocations: 43.55 kB / 447.7 MB, free: 13.35 MB / 366.1 MB Notification: Performance of pre-optimization done (n=100): time 2.785e-06/0.353, allocations: 0 / 447.7 MB, free: 13.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=100): time 0.002196/0.3552, allocations: 1.552 MB / 449.3 MB, free: 11.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/0.3553, allocations: 60.41 kB / 449.3 MB, free: 11.72 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001703/0.357, allocations: 1.461 MB / 450.8 MB, free: 10.25 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.236e-05/0.357, allocations: 41.7 kB / 450.8 MB, free: 10.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001015/0.3581, allocations: 1.96 MB / 452.8 MB, free: 8.227 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002448/0.3583, allocations: 366 kB / 453.1 MB, free: 7.871 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005763/0.3589, allocations: 475.7 kB / 453.6 MB, free: 7.398 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.359, allocations: 353.9 kB / 453.9 MB, free: 7.047 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001113/0.3601, allocations: 0.8437 MB / 454.8 MB, free: 6.199 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/0.3619, allocations: 1.986 MB / 456.8 MB, free: 3.684 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002997/0.3649, allocations: 2.994 MB / 459.8 MB, free: 312 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.51e-05/0.365, allocations: 12 kB / 459.8 MB, free: 300 kB / 366.1 MB Notification: Performance of matching and sorting (n=289) (initialization): time 0.003763/0.3687, allocations: 2.87 MB / 462.7 MB, free: 13.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.747e-05/0.3688, allocations: 31.88 kB / 462.7 MB, free: 13.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.781e-05/0.3688, allocations: 40.91 kB / 462.7 MB, free: 13.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.031e-05/0.3689, allocations: 52 kB / 462.8 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001529/0.3704, allocations: 0.5392 MB / 463.3 MB, free: 13.03 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.648e-05/0.3705, allocations: 82.77 kB / 463.4 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001191/0.3717, allocations: 292.9 kB / 463.7 MB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001441/0.3718, allocations: 124 kB / 463.8 MB, free: 12.55 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 178 * 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 (285): * Single equations (assignments): 281 * 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.002214/0.3741, allocations: 1.669 MB / 465.5 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000194/0.3743, allocations: 134.2 kB / 465.6 MB, free: 10.78 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002107/0.3764, allocations: 1.423 MB / 467 MB, free: 9.34 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001316/0.3777, allocations: 1.01 MB / 468 MB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.3777, allocations: 0 / 468 MB, free: 8.328 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.228e-06/0.3777, allocations: 7.984 kB / 468 MB, free: 8.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01363/0.3914, allocations: 12.23 MB / 480.3 MB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.825e-05/0.3914, allocations: 17 kB / 480.3 MB, free: 11.6 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006651/0.3921, allocations: 218.4 kB / 480.5 MB, free: 11.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.061e-05/0.3921, allocations: 28 kB / 480.5 MB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.461e-05/0.3922, allocations: 43.98 kB / 480.6 MB, free: 11.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-05/0.3922, allocations: 43.86 kB / 480.6 MB, free: 11.3 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.649e-05/0.3922, allocations: 28.72 kB / 480.6 MB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002731/0.395, allocations: 2.593 MB / 483.2 MB, free: 8.426 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004659/0.3955, allocations: 335 kB / 483.6 MB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001558/0.3956, allocations: 43.98 kB / 483.6 MB, free: 8.035 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006539/0.3963, allocations: 63.95 kB / 483.7 MB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001502/0.3964, allocations: 133 kB / 483.8 MB, free: 7.859 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.599e-05/0.3965, allocations: 59.92 kB / 483.9 MB, free: 7.801 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001188/0.3977, allocations: 0.9877 MB / 484.8 MB, free: 6.809 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3977, allocations: 0 / 484.8 MB, free: 6.809 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002395/0.4001, allocations: 0.9399 MB / 485.8 MB, free: 5.863 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 87 * 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 (101): * Single equations (assignments): 97 * 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.0002948/0.4004, allocations: 211.9 kB / 486 MB, free: 5.664 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002406/0.4028, allocations: 1.907 MB / 487.9 MB, free: 3.898 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.713e-06/0.4029, allocations: 8.438 kB / 487.9 MB, free: 3.891 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007792/0.4036, allocations: 0.6194 MB / 488.5 MB, free: 3.332 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001983/0.4056, allocations: 364.3 kB / 488.9 MB, free: 2.984 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0104/0.416, allocations: 8.747 MB / 497.6 MB, free: 9.988 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00254/0.4186, allocations: 3.075 MB / 0.489 GB, free: 6.883 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001849/0.4205, allocations: 0.8132 MB / 0.4898 GB, free: 6.062 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000245/0.4207, allocations: 111.4 kB / 0.4899 GB, free: 5.953 MB / 414.1 MB Notification: Performance of SimCode: time 2.71e-07/0.4207, allocations: 0 / 0.4899 GB, free: 5.953 MB / 414.1 MB Notification: Performance of Templates: time 0.02946/0.4502, allocations: 17.71 MB / 0.5072 GB, free: 4.445 MB / 430.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.sim & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Polyphase/Examples/BalancingStar/BalancingStar.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches