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.001363/0.001363, allocations: 104.8 kB / 16.62 MB, free: 6.809 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.001544/0.001544, allocations: 189.9 kB / 17.55 MB, free: 5.953 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.293/1.293, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009612/0.0009613, allocations: 53.97 kB / 300.1 MB, free: 6.129 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08681/0.08778, allocations: 49.45 MB / 349.6 MB, free: 4.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar): time 0.009789/0.09762, allocations: 9.603 MB / 359.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004951/0.1026, allocations: 2.643 MB / 361.8 MB, free: 8.367 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006564/0.1033, allocations: 71.81 kB / 361.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007673/0.111, allocations: 3.988 MB / 365.9 MB, free: 4.305 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002403/0.1135, allocations: 0.8125 MB / 366.7 MB, free: 3.488 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001555/0.115, allocations: 0.7586 MB / 367.5 MB, free: 2.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1605/0.2755, allocations: 4.017 MB / 371.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01766/0.2932, allocations: 12.73 MB / 384.2 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003869/0.2971, allocations: 2.384 MB / 386.6 MB, free: 5.078 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004606/0.3017, allocations: 2.661 MB / 389.2 MB, free: 3.793 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002056/0.3038, allocations: 0.6674 MB / 389.9 MB, free: 3.789 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00234/0.3062, allocations: 0.8831 MB / 390.8 MB, free: 3.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009003/0.3071, allocations: 1.243 MB / 392 MB, free: 2.855 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002427/0.3095, allocations: 2.563 MB / 394.6 MB, free: 1.105 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00648/0.316, allocations: 8.843 MB / 403.4 MB, free: 11.03 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.316, allocations: 0 / 403.4 MB, free: 11.03 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.316, allocations: 0 / 403.4 MB, free: 11.03 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000116/0.3162, allocations: 7.875 kB / 403.5 MB, free: 11.02 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.01111/0.3273, allocations: 5.325 MB / 408.8 MB, free: 5.668 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.3273, allocations: 11.89 kB / 408.8 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007447/0.3348, allocations: 1.298 MB / 410.1 MB, free: 4.371 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004032/0.3388, allocations: 2.505 MB / 412.6 MB, free: 1.941 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000237/0.3391, allocations: 352 kB / 412.9 MB, free: 1.598 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006359/0.3397, allocations: 458.5 kB / 413.4 MB, free: 1.152 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0103/0.35, allocations: 6.111 MB / 419.5 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.825e-05/0.3501, allocations: 0 / 419.5 MB, free: 11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004185/0.3506, allocations: 190.7 kB / 419.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001684/0.3507, allocations: 197.5 kB / 419.9 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008719/0.3595, allocations: 5.288 MB / 425.2 MB, free: 5.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02874/0.3882, allocations: 21.02 MB / 446.2 MB, free: 12 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006277/0.3945, allocations: 5.6 MB / 451.8 MB, free: 9.664 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001021/0.3956, allocations: 0.7059 MB / 452.5 MB, free: 8.957 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001479/0.3958, allocations: 105.8 kB / 452.6 MB, free: 8.836 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.336e-05/0.3958, allocations: 51.55 kB / 452.6 MB, free: 8.777 MB / 366.1 MB Notification: Performance of pre-optimization done (n=100): time 3.467e-06/0.3958, allocations: 0 / 452.6 MB, free: 8.777 MB / 366.1 MB Notification: Performance of matching and sorting (n=100): time 0.002337/0.3982, allocations: 1.548 MB / 454.2 MB, free: 7.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.761e-05/0.3982, allocations: 60.41 kB / 454.2 MB, free: 7.156 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002253/0.4005, allocations: 1.454 MB / 455.7 MB, free: 5.691 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.504e-05/0.4006, allocations: 41.7 kB / 455.7 MB, free: 5.645 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001181/0.4018, allocations: 1.964 MB / 457.7 MB, free: 3.668 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003103/0.4021, allocations: 370 kB / 458.1 MB, free: 3.309 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006789/0.4028, allocations: 483.7 kB / 458.5 MB, free: 2.828 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000139/0.4029, allocations: 353.9 kB / 458.9 MB, free: 2.477 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00124/0.4042, allocations: 0.8437 MB / 459.7 MB, free: 1.629 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001925/0.4061, allocations: 1.978 MB / 461.7 MB, free: 15.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003137/0.4092, allocations: 3.007 MB / 464.7 MB, free: 11.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.897e-05/0.4093, allocations: 12 kB / 464.7 MB, free: 11.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=289) (initialization): time 0.004148/0.4134, allocations: 2.868 MB / 467.6 MB, free: 9.066 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.94e-05/0.4135, allocations: 23.94 kB / 467.6 MB, free: 9.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.067e-05/0.4135, allocations: 40 kB / 467.7 MB, free: 9.004 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.779e-05/0.4136, allocations: 55.94 kB / 467.7 MB, free: 8.949 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001572/0.4152, allocations: 0.5392 MB / 468.3 MB, free: 8.453 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-05/0.4153, allocations: 78.44 kB / 468.3 MB, free: 8.395 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001369/0.4166, allocations: 301.2 kB / 468.6 MB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001707/0.4168, allocations: 128 kB / 468.7 MB, free: 7.973 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.002382/0.4192, allocations: 1.661 MB / 470.4 MB, free: 6.34 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002559/0.4195, allocations: 134.2 kB / 470.5 MB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002205/0.4217, allocations: 1.431 MB / 472 MB, free: 4.762 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001398/0.4231, allocations: 1.01 MB / 473 MB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.4231, allocations: 0 / 473 MB, free: 3.75 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.4231, allocations: 3.984 kB / 473 MB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01744/0.4406, allocations: 12.24 MB / 485.2 MB, free: 7.043 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.392e-05/0.4407, allocations: 20 kB / 485.2 MB, free: 7.023 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008275/0.4415, allocations: 211.6 kB / 485.4 MB, free: 6.832 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.506e-05/0.4415, allocations: 24 kB / 485.5 MB, free: 6.809 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001044/0.4416, allocations: 47.98 kB / 485.5 MB, free: 6.762 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.9e-05/0.4417, allocations: 38.95 kB / 485.6 MB, free: 6.734 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.885e-05/0.4417, allocations: 29.81 kB / 485.6 MB, free: 6.711 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003205/0.4449, allocations: 2.582 MB / 488.2 MB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006283/0.4456, allocations: 323.1 kB / 488.5 MB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002632/0.4458, allocations: 51.91 kB / 488.5 MB, free: 3.473 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008328/0.4467, allocations: 66.77 kB / 488.6 MB, free: 3.41 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001696/0.4468, allocations: 133.9 kB / 488.7 MB, free: 3.293 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.319e-05/0.4469, allocations: 59.92 kB / 488.8 MB, free: 3.234 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001555/0.4485, allocations: 0.9838 MB / 489.8 MB, free: 2.246 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4485, allocations: 4 kB / 489.8 MB, free: 2.242 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002823/0.4513, allocations: 0.9437 MB / 490.7 MB, free: 1.293 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.0003705/0.4517, allocations: 207.1 kB / 490.9 MB, free: 1.102 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.003112/0.4548, allocations: 1.972 MB / 492.9 MB, free: 15.27 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.016e-05/0.4549, allocations: 7.656 kB / 492.9 MB, free: 15.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008732/0.4557, allocations: 0.6136 MB / 493.5 MB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002404/0.4582, allocations: 391.6 kB / 493.9 MB, free: 14.35 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01306/0.4712, allocations: 8.744 MB / 0.4909 GB, free: 5.352 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003359/0.4746, allocations: 3.079 MB / 0.4939 GB, free: 2.242 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002003/0.4766, allocations: 0.8054 MB / 0.4947 GB, free: 1.43 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003155/0.477, allocations: 115.4 kB / 0.4948 GB, free: 1.316 MB / 414.1 MB Notification: Performance of SimCode: time 6.01e-07/0.477, allocations: 0 / 0.4948 GB, free: 1.316 MB / 414.1 MB Notification: Performance of Templates: time 0.03365/0.5106, allocations: 18.3 MB / 0.5126 GB, free: 15.23 MB / 446.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