Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002761/0.002767, allocations: 182.6 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.578/3.578, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001912/0.001912, allocations: 99.17 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000656/0.0006564, allocations: 8 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.513/0.5137, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar): time 0.02053/0.5343, allocations: 8.096 MB / 382.6 MB, free: 39.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01201/0.5464, allocations: 2.625 MB / 385.3 MB, free: 37.02 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002761/0.5493, allocations: 64.53 kB / 385.3 MB, free: 37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003268/0.5526, allocations: 463.4 kB / 385.8 MB, free: 36.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007323/0.56, allocations: 0.8761 MB / 386.6 MB, free: 35.94 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004913/0.565, allocations: 0.6513 MB / 387.3 MB, free: 35.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.009282/0.5743, allocations: 2.844 MB / 390.1 MB, free: 33.22 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03354/0.6079, allocations: 9.218 MB / 399.4 MB, free: 23.93 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005239/0.6132, allocations: 1.585 MB / 400.9 MB, free: 22.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006276/0.6196, allocations: 1.813 MB / 402.8 MB, free: 20.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001648/0.6213, allocations: 287.9 kB / 403 MB, free: 20.24 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003633/0.625, allocations: 463.7 kB / 403.5 MB, free: 19.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00201/0.6271, allocations: 0.767 MB / 404.3 MB, free: 19.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002408/0.6295, allocations: 0.9058 MB / 405.2 MB, free: 18.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01494/0.6446, allocations: 7.621 MB / 412.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.652e-06/0.6446, allocations: 0 / 412.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.539e-06/0.6447, allocations: 4 kB / 412.8 MB, free: 10.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002927/0.645, allocations: 0 / 412.8 MB, free: 10.46 MB / 298.7 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.02787/0.6729, allocations: 4.586 MB / 417.4 MB, free: 5.805 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.249e-05/0.673, allocations: 8.031 kB / 417.4 MB, free: 5.797 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03762/0.7106, allocations: 2.41 MB / 419.8 MB, free: 3.379 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01007/0.7208, allocations: 2.349 MB / 422.1 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000683/0.7215, allocations: 365.8 kB / 422.5 MB, free: 0.6211 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002835/0.7244, allocations: 476 kB / 423 MB, free: 160 kB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03693/0.7614, allocations: 6.585 MB / 429.5 MB, free: 9.535 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003165/0.7618, allocations: 4 kB / 429.6 MB, free: 9.531 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002428/0.7643, allocations: 200 kB / 429.7 MB, free: 9.336 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005904/0.7649, allocations: 226.1 kB / 430 MB, free: 9.113 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03283/0.7978, allocations: 6.098 MB / 436.1 MB, free: 3.004 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09605/0.8939, allocations: 22.69 MB / 458.8 MB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02985/0.9239, allocations: 10.8 MB / 469.6 MB, free: 15.06 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01572/0.9397, allocations: 3.589 MB / 473.1 MB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.485e-05/0.9398, allocations: 30.56 kB / 473.2 MB, free: 11.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 5.18e-06/0.9398, allocations: 0 / 473.2 MB, free: 11.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.002146/0.942, allocations: 0.6685 MB / 473.8 MB, free: 10.34 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.495e-05/0.9422, allocations: 51.41 kB / 473.9 MB, free: 10.28 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009012/0.9512, allocations: 2.153 MB / 476 MB, free: 8.117 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.571e-05/0.9514, allocations: 29.7 kB / 476.1 MB, free: 8.082 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003646/0.955, allocations: 2.396 MB / 478.5 MB, free: 5.652 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002975/0.9554, allocations: 95.3 kB / 478.6 MB, free: 5.559 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004616/0.9559, allocations: 48 kB / 478.6 MB, free: 5.512 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004785/0.9564, allocations: 415.8 kB / 479 MB, free: 5.098 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00392/0.9603, allocations: 0.8597 MB / 479.9 MB, free: 4.234 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006107/0.9665, allocations: 2.265 MB / 482.1 MB, free: 1.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006064/0.9727, allocations: 1.424 MB / 483.6 MB, free: 15.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.563e-05/0.9728, allocations: 16 kB / 483.6 MB, free: 15.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=316) (initialization): time 0.01442/0.9873, allocations: 3.067 MB / 486.7 MB, free: 12.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001159/0.9875, allocations: 31.94 kB / 486.7 MB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001487/0.9876, allocations: 48 kB / 486.7 MB, free: 12.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001834/0.9878, allocations: 72 kB / 486.8 MB, free: 12.61 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005656/0.9935, allocations: 0.5771 MB / 487.4 MB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002275/0.9938, allocations: 99.64 kB / 487.5 MB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006162/1, allocations: 412.6 kB / 487.9 MB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007977/1.001, allocations: 148 kB / 488 MB, free: 11.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 227 * 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 (312): * Single equations (assignments): 308 * 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.007315/1.008, allocations: 1.726 MB / 489.7 MB, free: 9.641 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000673/1.009, allocations: 134.2 kB / 489.9 MB, free: 9.508 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001695/1.011, allocations: 339.1 kB / 490.2 MB, free: 9.168 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000644/1.011, allocations: 187.1 kB / 490.4 MB, free: 8.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.424e-05/1.011, allocations: 0 / 490.4 MB, free: 8.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/1.012, allocations: 0 / 490.4 MB, free: 8.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0155/1.027, allocations: 3.185 MB / 493.6 MB, free: 5.742 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.508e-06/1.027, allocations: 0 / 493.6 MB, free: 5.742 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002624/1.027, allocations: 19.92 kB / 493.6 MB, free: 5.723 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.261e-05/1.027, allocations: 0 / 493.6 MB, free: 5.723 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.017e-05/1.027, allocations: 4.031 kB / 493.6 MB, free: 5.719 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.264e-06/1.028, allocations: 4 kB / 493.6 MB, free: 5.715 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/1.028, allocations: 0 / 493.6 MB, free: 5.715 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001902/1.029, allocations: 0.5356 MB / 494.1 MB, free: 5.152 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001325/1.031, allocations: 259.2 kB / 494.4 MB, free: 4.879 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006227/1.032, allocations: 0 / 494.4 MB, free: 4.879 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001775/1.033, allocations: 36.02 kB / 494.4 MB, free: 4.844 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/1.033, allocations: 11.94 kB / 494.4 MB, free: 4.832 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.816e-05/1.034, allocations: 4 kB / 494.4 MB, free: 4.828 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00629/1.04, allocations: 1.4 MB / 495.8 MB, free: 3.434 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.433e-06/1.04, allocations: 0 / 495.8 MB, free: 3.434 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.007167/1.047, allocations: 0.9864 MB / 496.8 MB, free: 2.441 MB / 378.7 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 (10): * Single equations (assignments): 6 * 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.0006294/1.048, allocations: 151.2 kB / 497 MB, free: 2.281 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007228/1.055, allocations: 1.573 MB / 498.6 MB, free: 0.7109 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.197e-05/1.055, allocations: 4 kB / 498.6 MB, free: 0.707 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004109/1.056, allocations: 84.28 kB / 498.6 MB, free: 0.625 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004525/1.06, allocations: 319.8 kB / 498.9 MB, free: 324 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03054/1.091, allocations: 7.441 MB / 0.4945 GB, free: 8.84 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01021/1.101, allocations: 3.122 MB / 0.4976 GB, free: 5.691 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009673/1.102, allocations: 127.4 kB / 0.4977 GB, free: 5.566 MB / 394.7 MB Notification: Performance of SimCode: time 2.074e-06/1.102, allocations: 0 / 0.4977 GB, free: 5.566 MB / 394.7 MB Notification: Performance of Templates: time 0.625/1.727, allocations: 39.08 MB / 0.5359 GB, free: 95.15 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches