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.001002/0.001002, allocations: 95.88 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001374/0.001374, allocations: 206.5 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.7 MB / 247.5 MB, free: 11.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002405/0.0002404, allocations: 4 kB / 308.4 MB, free: 0.8008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0896/0.08985, allocations: 51.53 MB / 359.9 MB, free: 13.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar): time 0.008691/0.09859, allocations: 8.977 MB / 368.9 MB, free: 4.254 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005166/0.1038, allocations: 2.702 MB / 371.6 MB, free: 1.543 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001381/0.1052, allocations: 71.81 kB / 371.7 MB, free: 1.473 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001533/0.1068, allocations: 0.5795 MB / 372.2 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002528/0.1093, allocations: 0.6724 MB / 372.9 MB, free: 220 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1602/0.2696, allocations: 0.8865 MB / 373.8 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00492/0.2745, allocations: 3.84 MB / 377.6 MB, free: 8.898 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01572/0.2902, allocations: 11.11 MB / 388.8 MB, free: 5.238 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002684/0.2929, allocations: 1.633 MB / 390.4 MB, free: 4.594 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002674/0.2956, allocations: 1.933 MB / 392.3 MB, free: 3.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004906/0.2961, allocations: 278.3 kB / 392.6 MB, free: 3.766 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001371/0.2975, allocations: 0.498 MB / 393.1 MB, free: 3.695 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005175/0.298, allocations: 0.7373 MB / 393.8 MB, free: 3.238 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001821/0.2999, allocations: 2.017 MB / 395.8 MB, free: 1.883 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005636/0.3055, allocations: 7.519 MB / 403.4 MB, free: 13.3 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.3055, allocations: 0 / 403.4 MB, free: 13.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3056, allocations: 0 / 403.4 MB, free: 13.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001781/0.3057, allocations: 4 kB / 403.4 MB, free: 13.3 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.01117/0.3169, allocations: 4.343 MB / 407.7 MB, free: 8.914 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.317, allocations: 16.03 kB / 407.7 MB, free: 8.898 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00822/0.3252, allocations: 1.326 MB / 409.1 MB, free: 7.586 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005175/0.3304, allocations: 2.511 MB / 411.6 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002662/0.3307, allocations: 349.3 kB / 411.9 MB, free: 4.699 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008918/0.3316, allocations: 455.1 kB / 412.4 MB, free: 4.258 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01093/0.3425, allocations: 6.117 MB / 418.5 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-05/0.3426, allocations: 3.938 kB / 418.5 MB, free: 14.1 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004168/0.3431, allocations: 186.5 kB / 418.7 MB, free: 13.92 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001724/0.3433, allocations: 201.5 kB / 418.9 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00853/0.3518, allocations: 5.288 MB / 424.1 MB, free: 8.414 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.026/0.3778, allocations: 21.3 MB / 445.4 MB, free: 2.504 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006158/0.384, allocations: 5.604 MB / 451 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001057/0.3851, allocations: 0.7097 MB / 451.8 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002211/0.3853, allocations: 194.8 kB / 451.9 MB, free: 11.2 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.152e-05/0.3854, allocations: 43.56 kB / 452 MB, free: 11.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=100): time 3.186e-06/0.3854, allocations: 4 kB / 452 MB, free: 11.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=100): time 0.00225/0.3876, allocations: 1.545 MB / 453.5 MB, free: 9.598 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/0.3877, allocations: 60.41 kB / 453.6 MB, free: 9.523 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001937/0.3896, allocations: 1.457 MB / 455.1 MB, free: 8.055 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.145e-05/0.3897, allocations: 41.7 kB / 455.1 MB, free: 8.008 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001136/0.3908, allocations: 1.963 MB / 457.1 MB, free: 6.031 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002821/0.3911, allocations: 365.4 kB / 457.4 MB, free: 5.676 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002298/0.3914, allocations: 182.2 kB / 457.6 MB, free: 5.492 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000141/0.3915, allocations: 361.9 kB / 457.9 MB, free: 5.133 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001141/0.3927, allocations: 0.8437 MB / 458.8 MB, free: 4.285 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001888/0.3946, allocations: 1.983 MB / 460.8 MB, free: 1.75 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003168/0.3977, allocations: 2.997 MB / 463.8 MB, free: 14.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.97e-05/0.3978, allocations: 12 kB / 463.8 MB, free: 14.2 MB / 382.1 MB Notification: Performance of matching and sorting (n=289) (initialization): time 0.00407/0.4018, allocations: 2.864 MB / 466.6 MB, free: 11.33 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.067e-05/0.4019, allocations: 27.97 kB / 466.7 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.286e-05/0.402, allocations: 43.94 kB / 466.7 MB, free: 11.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.745e-05/0.402, allocations: 56 kB / 466.8 MB, free: 11.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001568/0.4036, allocations: 0.5343 MB / 467.3 MB, free: 10.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.769e-05/0.4037, allocations: 79.66 kB / 467.4 MB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001217/0.4049, allocations: 293 kB / 467.7 MB, free: 10.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001462/0.405, allocations: 131.9 kB / 467.8 MB, free: 10.17 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.002441/0.4075, allocations: 1.668 MB / 469.5 MB, free: 8.492 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002073/0.4077, allocations: 130.3 kB / 469.6 MB, free: 8.363 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002084/0.4098, allocations: 1.424 MB / 471 MB, free: 6.914 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001296/0.4111, allocations: 1.018 MB / 472 MB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/0.4111, allocations: 0 / 472 MB, free: 5.895 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.4111, allocations: 3.984 kB / 472 MB, free: 5.891 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01502/0.4262, allocations: 13.53 MB / 485.6 MB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-05/0.4262, allocations: 20 kB / 485.6 MB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007217/0.427, allocations: 211.6 kB / 485.8 MB, free: 7.246 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.733e-05/0.427, allocations: 31.94 kB / 485.8 MB, free: 7.215 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.299e-05/0.4271, allocations: 44 kB / 485.9 MB, free: 7.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.522e-05/0.4271, allocations: 39.8 kB / 485.9 MB, free: 7.133 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.841e-05/0.4271, allocations: 35.86 kB / 485.9 MB, free: 7.098 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002808/0.4299, allocations: 2.581 MB / 488.5 MB, free: 4.23 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004987/0.4305, allocations: 335.1 kB / 488.9 MB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001487/0.4306, allocations: 47.97 kB / 488.9 MB, free: 3.836 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006992/0.4313, allocations: 59.95 kB / 489 MB, free: 3.777 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/0.4315, allocations: 135.4 kB / 489.1 MB, free: 3.645 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.137e-05/0.4316, allocations: 59.92 kB / 489.1 MB, free: 3.586 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001285/0.4328, allocations: 0.9955 MB / 490.1 MB, free: 2.586 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4329, allocations: 4 kB / 490.1 MB, free: 2.582 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002481/0.4353, allocations: 0.9321 MB / 491.1 MB, free: 1.645 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.0003256/0.4357, allocations: 202.6 kB / 491.3 MB, free: 1.441 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0026/0.4383, allocations: 1.91 MB / 493.2 MB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.593e-06/0.4383, allocations: 0 / 493.2 MB, free: 15.54 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007844/0.4391, allocations: 0.617 MB / 493.8 MB, free: 14.92 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004979/0.4441, allocations: 382.7 kB / 494.2 MB, free: 14.56 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0112/0.4553, allocations: 8.669 MB / 0.4911 GB, free: 5.586 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002607/0.4579, allocations: 2.992 MB / 0.494 GB, free: 2.566 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004289/0.4584, allocations: 135.4 kB / 0.4941 GB, free: 2.434 MB / 414.1 MB Notification: Performance of SimCode: time 1.894e-06/0.4584, allocations: 0 / 0.4941 GB, free: 2.434 MB / 414.1 MB Notification: Performance of Templates: time 0.2097/0.6682, allocations: 38.05 MB / 0.5313 GB, free: 136.1 MB / 446.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Polyphase/Examples/BalancingStar/BalancingStar.csv","/var/lib/jenkins1/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