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/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 3.2.3+maint.om/package.mo", uses=false) 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 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001059/0.001059, allocations: 109.4 kB / 18.34 MB, free: 4.699 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.001022/0.001022, allocations: 192.1 kB / 19.28 MB, free: 3.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.314/1.314, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001252, allocations: 51.92 kB / 282.1 MB, free: 2.453 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08226/0.08353, allocations: 46.62 MB / 328.7 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar): time 0.01022/0.09377, allocations: 10.09 MB / 338.8 MB, free: 9.609 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004711/0.09851, allocations: 2.804 MB / 341.6 MB, free: 6.793 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005776/0.09913, allocations: 63.81 kB / 341.7 MB, free: 6.73 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008066/0.1072, allocations: 4.209 MB / 345.9 MB, free: 2.504 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00239/0.1096, allocations: 1.045 MB / 346.9 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001642/0.1113, allocations: 0.8297 MB / 347.8 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003819/0.1151, allocations: 4.295 MB / 352.1 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01189/0.127, allocations: 10.99 MB / 363 MB, free: 1.199 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002892/0.1299, allocations: 2.462 MB / 365.5 MB, free: 14.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003234/0.1332, allocations: 2.776 MB / 368.3 MB, free: 11.95 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000821/0.134, allocations: 0.6758 MB / 369 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001564/0.1356, allocations: 0.8943 MB / 369.9 MB, free: 10.38 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001163/0.1368, allocations: 1.313 MB / 371.2 MB, free: 9.059 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003808/0.1406, allocations: 2.673 MB / 373.8 MB, free: 6.375 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1721/0.3127, allocations: 9.079 MB / 382.9 MB, free: 30.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.418e-06/0.3128, allocations: 1.312 kB / 382.9 MB, free: 30.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.3128, allocations: 0 / 382.9 MB, free: 30.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002684/0.3131, allocations: 1.125 kB / 382.9 MB, free: 30.52 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: 1303 * Number of variables: 1303 Notification: Performance of Generate backend data structure: time 0.0164/0.3295, allocations: 5.572 MB / 388.5 MB, free: 29.04 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.3296, allocations: 10.06 kB / 388.5 MB, free: 29.04 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02443/0.354, allocations: 2.389 MB / 390.9 MB, free: 28.79 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009281/0.3633, allocations: 2.378 MB / 393.3 MB, free: 28.35 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007407/0.3641, allocations: 364.7 kB / 393.6 MB, free: 28.34 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003212/0.3674, allocations: 481.3 kB / 394.1 MB, free: 28.2 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0213/0.3887, allocations: 6.64 MB / 400.7 MB, free: 24.86 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001583/0.3889, allocations: 7.734 kB / 400.7 MB, free: 24.85 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001092/0.39, allocations: 198.5 kB / 400.9 MB, free: 24.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002799/0.3903, allocations: 227.8 kB / 401.2 MB, free: 24.67 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01522/0.4055, allocations: 6.117 MB / 407.3 MB, free: 21.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03883/0.4444, allocations: 22.34 MB / 429.6 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009616/0.4541, allocations: 10.78 MB / 440.4 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001251/0.4553, allocations: 0.8261 MB / 441.2 MB, free: 2.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005534/0.4609, allocations: 3.385 MB / 444.6 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.94e-05/0.461, allocations: 34.56 kB / 444.6 MB, free: 14.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 4.398e-06/0.461, allocations: 3.469 kB / 444.6 MB, free: 14.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0005877/0.4616, allocations: 234.3 kB / 444.9 MB, free: 14.21 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.078e-05/0.4616, allocations: 51.41 kB / 444.9 MB, free: 14.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002865/0.4645, allocations: 2.133 MB / 447.1 MB, free: 12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.004e-05/0.4645, allocations: 29.7 kB / 447.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001329/0.4659, allocations: 2.379 MB / 449.5 MB, free: 9.574 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.048e-05/0.4659, allocations: 82.48 kB / 449.5 MB, free: 9.496 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006795/0.4666, allocations: 0.5466 MB / 450.1 MB, free: 8.941 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001294/0.4668, allocations: 353.9 kB / 450.4 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001058/0.4678, allocations: 0.8127 MB / 451.2 MB, free: 7.773 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001895/0.4697, allocations: 2.236 MB / 453.5 MB, free: 4.855 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002928/0.4727, allocations: 2.962 MB / 456.4 MB, free: 1.395 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.622e-05/0.4727, allocations: 23.66 kB / 456.5 MB, free: 1.375 MB / 350.1 MB Notification: Performance of matching and sorting (n=308) (initialization): time 0.00425/0.477, allocations: 3.019 MB / 459.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.81e-05/0.477, allocations: 24 kB / 459.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.249e-05/0.4771, allocations: 52 kB / 459.6 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.236e-05/0.4772, allocations: 68 kB / 459.6 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001607/0.4788, allocations: 0.5622 MB / 460.2 MB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.03e-05/0.4788, allocations: 98.08 kB / 460.3 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001953/0.4808, allocations: 408.3 kB / 460.7 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001692/0.481, allocations: 144 kB / 460.8 MB, free: 13.38 MB / 366.1 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 (307): * Single equations (assignments): 306 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.002396/0.4834, allocations: 1.729 MB / 462.6 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002485/0.4836, allocations: 130.3 kB / 462.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004458/0.4841, allocations: 249.1 kB / 462.9 MB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001213/0.4842, allocations: 93.34 kB / 463 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.4842, allocations: 0 / 463 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.748e-06/0.4843, allocations: 7.938 kB / 463 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004479/0.4887, allocations: 3.044 MB / 466.1 MB, free: 8.109 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.985e-06/0.4888, allocations: 0 / 466.1 MB, free: 8.109 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.358e-05/0.4888, allocations: 14.72 kB / 466.1 MB, free: 8.098 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.4889, allocations: 3.938 kB / 466.1 MB, free: 8.094 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.4889, allocations: 4.375 kB / 466.1 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.4889, allocations: 0 / 466.1 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.4889, allocations: 0 / 466.1 MB, free: 8.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003988/0.4893, allocations: 379.6 kB / 466.5 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003713/0.4897, allocations: 215.5 kB / 466.7 MB, free: 7.473 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001443/0.4898, allocations: 7.938 kB / 466.7 MB, free: 7.465 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004659/0.4903, allocations: 27.95 kB / 466.7 MB, free: 7.438 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.566e-05/0.4903, allocations: 7.984 kB / 466.7 MB, free: 7.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.039e-05/0.4903, allocations: 3.984 kB / 466.7 MB, free: 7.426 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001779/0.4921, allocations: 1.4 MB / 468.1 MB, free: 6.031 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.4921, allocations: 4 kB / 468.1 MB, free: 6.027 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002673/0.4948, allocations: 0.9863 MB / 469.1 MB, free: 5.035 MB / 366.1 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 (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0002597/0.4951, allocations: 144.6 kB / 469.3 MB, free: 4.891 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002201/0.4973, allocations: 1.47 MB / 470.7 MB, free: 3.562 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.4973, allocations: 0 / 470.7 MB, free: 3.562 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.02e-05/0.4974, allocations: 34.89 kB / 470.8 MB, free: 3.531 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001489/0.4989, allocations: 327.6 kB / 471.1 MB, free: 3.219 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009845/0.5087, allocations: 6.079 MB / 477.2 MB, free: 13.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002804/0.5116, allocations: 3.132 MB / 480.3 MB, free: 9.977 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001785/0.5134, allocations: 0.7978 MB / 481.1 MB, free: 9.176 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001873/0.5136, allocations: 107.4 kB / 481.2 MB, free: 9.07 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5136, allocations: 0 / 481.2 MB, free: 9.07 MB / 382.1 MB Notification: Performance of Templates: time 0.03187/0.5455, allocations: 17.14 MB / 498.3 MB, free: 8.02 MB / 398.1 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/MultiPhase/Examples/BalancingStar/BalancingStar.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches