Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001148/0.001148, allocations: 197 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 226.6 MB / 244.3 MB, free: 8.297 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000817/0.000817, allocations: 95.44 kB / 296.4 MB, free: 7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003338/0.0003339, allocations: 4 kB / 356.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.199/0.1993, allocations: 51.28 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar): time 0.005644/0.205, allocations: 8.348 MB / 415.8 MB, free: 19.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003066/0.2081, allocations: 2.501 MB / 418.3 MB, free: 16.96 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004773/0.2086, allocations: 67.81 kB / 418.4 MB, free: 16.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006033/0.2092, allocations: 421.5 kB / 418.8 MB, free: 16.48 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001235/0.2105, allocations: 0.6218 MB / 419.4 MB, free: 15.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001188/0.2117, allocations: 0.759 MB / 420.2 MB, free: 15.1 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002222/0.2139, allocations: 3.713 MB / 423.9 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01028/0.2242, allocations: 9.261 MB / 433.2 MB, free: 2.027 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001553/0.2258, allocations: 1.62 MB / 434.8 MB, free: 412 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001882/0.2276, allocations: 1.837 MB / 436.6 MB, free: 14.55 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00041/0.2281, allocations: 276 kB / 436.9 MB, free: 14.29 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001028/0.2291, allocations: 495.8 kB / 437.4 MB, free: 13.8 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005249/0.2296, allocations: 0.7162 MB / 438.1 MB, free: 13.08 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008134/0.2305, allocations: 0.8746 MB / 439 MB, free: 12.2 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006017/0.2365, allocations: 7.512 MB / 446.5 MB, free: 4.672 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2365, allocations: 0 / 446.5 MB, free: 4.672 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2365, allocations: 0 / 446.5 MB, free: 4.672 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001404/0.2367, allocations: 0 / 446.5 MB, free: 4.672 MB / 314.7 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.009578/0.2463, allocations: 4.394 MB / 450.9 MB, free: 216 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.676e-05/0.2463, allocations: 12.03 kB / 450.9 MB, free: 204 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007439/0.2537, allocations: 1.322 MB / 452.2 MB, free: 14.87 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003898/0.2577, allocations: 2.485 MB / 454.7 MB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002386/0.2579, allocations: 349.3 kB / 455 MB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007503/0.2587, allocations: 459.9 kB / 455.5 MB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01016/0.2688, allocations: 6.074 MB / 461.6 MB, free: 5.426 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.187e-05/0.2689, allocations: 4 kB / 461.6 MB, free: 5.422 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004038/0.2693, allocations: 184 kB / 461.7 MB, free: 5.242 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001679/0.2695, allocations: 201.5 kB / 461.9 MB, free: 5.043 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008329/0.2779, allocations: 5.257 MB / 467.2 MB, free: 15.77 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02598/0.3039, allocations: 21.3 MB / 488.5 MB, free: 9.73 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005732/0.3096, allocations: 5.596 MB / 494.1 MB, free: 3.375 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009613/0.3106, allocations: 0.7058 MB / 494.8 MB, free: 2.672 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001983/0.3108, allocations: 199.2 kB / 495 MB, free: 2.438 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.612e-05/0.3109, allocations: 39.56 kB / 495 MB, free: 2.391 MB / 362.7 MB Notification: Performance of pre-optimization done (n=100): time 3.196e-06/0.3109, allocations: 0 / 495 MB, free: 2.391 MB / 362.7 MB Notification: Performance of matching and sorting (n=100): time 0.002152/0.313, allocations: 1.541 MB / 496.6 MB, free: 0.8438 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.36e-05/0.3131, allocations: 60.41 kB / 496.6 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001709/0.3148, allocations: 1.45 MB / 498.1 MB, free: 15.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.576e-05/0.3149, allocations: 41.7 kB / 498.1 MB, free: 15.26 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00107/0.3159, allocations: 1.963 MB / 0.4884 GB, free: 13.27 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002646/0.3162, allocations: 363 kB / 0.4887 GB, free: 12.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.97e-05/0.3163, allocations: 44 kB / 0.4888 GB, free: 12.87 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002171/0.3165, allocations: 455.3 kB / 0.4892 GB, free: 12.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001119/0.3177, allocations: 0.8359 MB / 0.49 GB, free: 11.57 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001754/0.3194, allocations: 1.976 MB / 0.4919 GB, free: 9.043 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001604/0.321, allocations: 1.342 MB / 0.4932 GB, free: 7.703 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.647e-05/0.3211, allocations: 12 kB / 0.4933 GB, free: 7.691 MB / 378.7 MB Notification: Performance of matching and sorting (n=289) (initialization): time 0.003726/0.3248, allocations: 2.844 MB / 0.496 GB, free: 4.836 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.274e-05/0.3248, allocations: 24 kB / 0.4961 GB, free: 4.812 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.554e-05/0.3249, allocations: 40.16 kB / 0.4961 GB, free: 4.773 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.394e-05/0.3249, allocations: 60 kB / 0.4962 GB, free: 4.715 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00153/0.3265, allocations: 0.5381 MB / 0.4967 GB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.544e-05/0.3265, allocations: 79.72 kB / 0.4968 GB, free: 4.098 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001099/0.3276, allocations: 293.1 kB / 0.497 GB, free: 3.809 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001512/0.3278, allocations: 124 kB / 0.4972 GB, free: 3.688 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002137/0.3299, allocations: 1.675 MB / 0.4988 GB, free: 2 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001795/0.3301, allocations: 130.3 kB / 0.4989 GB, free: 1.871 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001951/0.3321, allocations: 1.416 MB / 0.5003 GB, free: 448 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.1504/0.4825, allocations: 1 MB / 0.5013 GB, free: 85.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.899e-06/0.4825, allocations: 0 / 0.5013 GB, free: 85.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.33e-05/0.4825, allocations: 5.672 kB / 0.5013 GB, free: 85.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01321/0.4958, allocations: 13.52 MB / 0.5145 GB, free: 79.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.82e-05/0.4958, allocations: 19.41 kB / 0.5145 GB, free: 79.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006337/0.4964, allocations: 215 kB / 0.5147 GB, free: 79.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.95e-05/0.4965, allocations: 29.53 kB / 0.5147 GB, free: 79.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.989e-05/0.4965, allocations: 51.38 kB / 0.5148 GB, free: 79.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.739e-05/0.4966, allocations: 40.12 kB / 0.5148 GB, free: 79.07 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.161e-05/0.4966, allocations: 28.91 kB / 0.5148 GB, free: 79.07 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002094/0.4987, allocations: 2.578 MB / 0.5174 GB, free: 77.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003991/0.4991, allocations: 344 kB / 0.5177 GB, free: 77.31 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001289/0.4992, allocations: 43.34 kB / 0.5177 GB, free: 77.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000619/0.4999, allocations: 62.75 kB / 0.5178 GB, free: 77.29 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001058/0.5, allocations: 129.1 kB / 0.5179 GB, free: 77.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.44e-05/0.5001, allocations: 54.78 kB / 0.518 GB, free: 77.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009538/0.501, allocations: 0.9897 MB / 0.5189 GB, free: 76.83 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.501, allocations: 0 / 0.5189 GB, free: 76.83 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001952/0.503, allocations: 0.9362 MB / 0.5198 GB, free: 76.51 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002528/0.5032, allocations: 204.2 kB / 0.52 GB, free: 76.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001939/0.5052, allocations: 1.904 MB / 0.5219 GB, free: 75.61 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/0.5052, allocations: 6.531 kB / 0.5219 GB, free: 75.61 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005864/0.5058, allocations: 0.6126 MB / 0.5225 GB, free: 75.01 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001754/0.5076, allocations: 364.5 kB / 0.5229 GB, free: 74.67 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007639/0.5152, allocations: 8.286 MB / 0.5309 GB, free: 66.08 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001781/0.517, allocations: 2.996 MB / 0.5339 GB, free: 63.06 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003199/0.5173, allocations: 131.4 kB / 0.534 GB, free: 62.93 MB / 378.7 MB Notification: Performance of SimCode: time 8.01e-07/0.5173, allocations: 0 / 0.534 GB, free: 62.93 MB / 378.7 MB Notification: Performance of Templates: time 0.03462/0.552, allocations: 38.23 MB / 0.5713 GB, free: 24.76 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.sim & ./Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches