Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001569/0.001569, allocations: 118.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001983/0.001984, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.381/1.381, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001137/0.001137, allocations: 63.89 kB / 358.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2223/0.2235, allocations: 50.54 MB / 409.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar): time 0.009705/0.2332, allocations: 9.738 MB / 419 MB, free: 7.797 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005028/0.2383, allocations: 2.752 MB / 421.7 MB, free: 5.035 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007718/0.239, allocations: 75.81 kB / 421.8 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008222/0.2473, allocations: 4.199 MB / 426 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003013/0.2503, allocations: 0.7727 MB / 426.8 MB, free: 15.97 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001915/0.2523, allocations: 0.9564 MB / 427.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003893/0.2562, allocations: 4.058 MB / 431.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01146/0.2676, allocations: 10.96 MB / 442.8 MB, free: 15.87 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002597/0.2703, allocations: 2.365 MB / 445.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002696/0.273, allocations: 2.655 MB / 447.8 MB, free: 10.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006671/0.2736, allocations: 0.6602 MB / 448.4 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001284/0.2749, allocations: 0.8904 MB / 449.3 MB, free: 9.285 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009297/0.2759, allocations: 1.239 MB / 450.6 MB, free: 8.043 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002322/0.2782, allocations: 2.56 MB / 453.1 MB, free: 5.473 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007111/0.2853, allocations: 8.906 MB / 462 MB, free: 12.54 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2853, allocations: 0 / 462 MB, free: 12.54 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2854, allocations: 0 / 462 MB, free: 12.54 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001348/0.2855, allocations: 0 / 462 MB, free: 12.54 MB / 382.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.01171/0.2972, allocations: 5.311 MB / 467.3 MB, free: 7.164 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.561e-05/0.2973, allocations: 12.03 kB / 467.4 MB, free: 7.152 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007648/0.3049, allocations: 1.319 MB / 468.7 MB, free: 5.828 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004301/0.3092, allocations: 2.611 MB / 471.3 MB, free: 3.168 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002724/0.3095, allocations: 353.3 kB / 471.6 MB, free: 2.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001003/0.3105, allocations: 451.9 kB / 472.1 MB, free: 2.379 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01086/0.3214, allocations: 6.094 MB / 478.2 MB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.705e-05/0.3215, allocations: 4 kB / 478.2 MB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004442/0.322, allocations: 188 kB / 478.4 MB, free: 12.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001636/0.3221, allocations: 193.5 kB / 478.5 MB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008929/0.3311, allocations: 5.268 MB / 483.8 MB, free: 6.582 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02981/0.3609, allocations: 20.96 MB / 0.4929 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006062/0.367, allocations: 5.568 MB / 0.4984 GB, free: 10.54 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009793/0.368, allocations: 0.6627 MB / 0.499 GB, free: 9.883 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002176/0.3683, allocations: 203.2 kB / 0.4992 GB, free: 9.648 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.3683, allocations: 39.56 kB / 0.4993 GB, free: 9.602 MB / 430.1 MB Notification: Performance of pre-optimization done (n=94): time 3.066e-06/0.3683, allocations: 0 / 0.4993 GB, free: 9.602 MB / 430.1 MB Notification: Performance of matching and sorting (n=94): time 0.002134/0.3705, allocations: 1.42 MB / 0.5006 GB, free: 8.172 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.3705, allocations: 60.41 kB / 0.5007 GB, free: 8.102 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00211/0.3726, allocations: 1.457 MB / 0.5021 GB, free: 6.633 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.318e-05/0.3727, allocations: 41.7 kB / 0.5022 GB, free: 6.586 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001129/0.3738, allocations: 1.963 MB / 0.5041 GB, free: 4.594 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002809/0.3741, allocations: 363.2 kB / 0.5044 GB, free: 4.234 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005991/0.3747, allocations: 467.6 kB / 0.5049 GB, free: 3.77 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.3749, allocations: 361.9 kB / 0.5052 GB, free: 3.41 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001252/0.3762, allocations: 0.8084 MB / 0.506 GB, free: 2.598 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001974/0.3781, allocations: 1.933 MB / 0.5079 GB, free: 108 kB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003194/0.3813, allocations: 2.931 MB / 0.5108 GB, free: 12.62 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.274e-05/0.3814, allocations: 8 kB / 0.5108 GB, free: 12.62 MB / 446.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004044/0.3854, allocations: 2.789 MB / 0.5135 GB, free: 9.824 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.981e-05/0.3855, allocations: 20 kB / 0.5135 GB, free: 9.805 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.508e-05/0.3855, allocations: 40 kB / 0.5135 GB, free: 9.766 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.485e-05/0.3856, allocations: 52 kB / 0.5136 GB, free: 9.715 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001524/0.3871, allocations: 0.542 MB / 0.5141 GB, free: 9.172 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-05/0.3872, allocations: 83.59 kB / 0.5142 GB, free: 9.09 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001186/0.3884, allocations: 297.5 kB / 0.5145 GB, free: 8.797 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001553/0.3885, allocations: 116 kB / 0.5146 GB, free: 8.684 MB / 446.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 (282): * Single equations (assignments): 281 * 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.002146/0.3907, allocations: 1.675 MB / 0.5162 GB, free: 6.996 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001772/0.3909, allocations: 126.4 kB / 0.5164 GB, free: 6.871 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001909/0.3928, allocations: 1.338 MB / 0.5177 GB, free: 5.512 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001175/0.394, allocations: 0.9357 MB / 0.5186 GB, free: 4.57 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.394, allocations: 0 / 0.5186 GB, free: 4.57 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.03e-05/0.394, allocations: 3.984 kB / 0.5186 GB, free: 4.566 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01467/0.4087, allocations: 13.49 MB / 0.5318 GB, free: 6.164 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.991e-05/0.4087, allocations: 23.94 kB / 0.5318 GB, free: 6.141 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006936/0.4094, allocations: 215.8 kB / 0.532 GB, free: 5.93 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.155e-05/0.4095, allocations: 24 kB / 0.532 GB, free: 5.906 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.02e-05/0.4095, allocations: 44 kB / 0.5321 GB, free: 5.863 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.753e-05/0.4096, allocations: 43.73 kB / 0.5321 GB, free: 5.82 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.029e-05/0.4096, allocations: 31.88 kB / 0.5321 GB, free: 5.789 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002657/0.4123, allocations: 2.446 MB / 0.5345 GB, free: 3.051 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004728/0.4128, allocations: 323.1 kB / 0.5348 GB, free: 2.715 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00014/0.4129, allocations: 47.92 kB / 0.5349 GB, free: 2.668 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006535/0.4136, allocations: 59.95 kB / 0.5349 GB, free: 2.609 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000155/0.4137, allocations: 131.5 kB / 0.535 GB, free: 2.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.419e-05/0.4138, allocations: 55.98 kB / 0.5351 GB, free: 2.426 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001191/0.415, allocations: 0.9916 MB / 0.5361 GB, free: 1.43 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.613e-06/0.415, allocations: 0 / 0.5361 GB, free: 1.43 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002443/0.4175, allocations: 0.9436 MB / 0.537 GB, free: 492 kB / 462.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 (98): * Single equations (assignments): 97 * 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.000311/0.4178, allocations: 205.7 kB / 0.5372 GB, free: 276 kB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.2058/0.6236, allocations: 1.865 MB / 0.539 GB, free: 123 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.628e-05/0.6237, allocations: 3.594 kB / 0.539 GB, free: 123 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008178/0.6245, allocations: 0.5656 MB / 0.5396 GB, free: 123 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002081/0.6266, allocations: 373 kB / 0.5399 GB, free: 122.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009376/0.636, allocations: 6.847 MB / 0.5466 GB, free: 119.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002266/0.6383, allocations: 3.065 MB / 0.5496 GB, free: 118.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001619/0.6399, allocations: 0.8233 MB / 0.5504 GB, free: 118.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002257/0.6402, allocations: 115.9 kB / 0.5505 GB, free: 118.1 MB / 462.1 MB Notification: Performance of SimCode: time 8.21e-07/0.6402, allocations: 0 / 0.5505 GB, free: 118.1 MB / 462.1 MB Notification: Performance of Templates: time 0.02816/0.6683, allocations: 18.21 MB / 0.5683 GB, free: 102.5 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.makefile (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches