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: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001052/0.001052, allocations: 175.9 kB / 16.72 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.288/1.288, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0009891/0.0009892, allocations: 94.34 kB / 271.2 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002867/0.0002869, allocations: 8 kB / 327.6 MB, free: 15.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2188/0.2191, allocations: 47.58 MB / 375.2 MB, free: 45.42 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar): time 0.006509/0.2257, allocations: 8.697 MB / 383.9 MB, free: 38.57 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004391/0.2301, allocations: 2.559 MB / 386.4 MB, free: 36.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009599/0.2311, allocations: 61.34 kB / 386.5 MB, free: 36.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008496/0.232, allocations: 428.1 kB / 386.9 MB, free: 36.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002519/0.2345, allocations: 0.8622 MB / 387.8 MB, free: 35.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001608/0.2361, allocations: 0.658 MB / 388.4 MB, free: 34.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003184/0.2393, allocations: 3.954 MB / 392.4 MB, free: 31.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01155/0.2509, allocations: 10.91 MB / 403.3 MB, free: 20.44 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002083/0.253, allocations: 1.701 MB / 405 MB, free: 18.73 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001808/0.2548, allocations: 1.973 MB / 407 MB, free: 16.75 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003569/0.2552, allocations: 280 kB / 407.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001019/0.2562, allocations: 487.8 kB / 407.7 MB, free: 16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004301/0.2566, allocations: 0.7863 MB / 408.5 MB, free: 15.21 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001478/0.2581, allocations: 2.028 MB / 410.5 MB, free: 13.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004479/0.2626, allocations: 7.633 MB / 418.2 MB, free: 5.516 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.2626, allocations: 0 / 418.2 MB, free: 5.516 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2626, allocations: 0 / 418.2 MB, free: 5.516 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001716/0.2628, allocations: 0 / 418.2 MB, free: 5.516 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.009205/0.272, allocations: 4.543 MB / 422.7 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.2721, allocations: 12.03 kB / 422.7 MB, free: 0.8945 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001334/0.2734, allocations: 0.6988 MB / 423.4 MB, free: 192 kB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01239/0.2858, allocations: 2.399 MB / 425.8 MB, free: 13.78 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004505/0.2904, allocations: 2.373 MB / 428.2 MB, free: 11.36 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003509/0.2907, allocations: 369.8 kB / 428.6 MB, free: 10.99 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00129/0.292, allocations: 476 kB / 429 MB, free: 10.53 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0146/0.3067, allocations: 6.624 MB / 435.7 MB, free: 3.867 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001338/0.3068, allocations: 3.906 kB / 435.7 MB, free: 3.863 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008913/0.3077, allocations: 200 kB / 435.9 MB, free: 3.668 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002215/0.3079, allocations: 230.1 kB / 436.1 MB, free: 3.441 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01169/0.3197, allocations: 6.09 MB / 442.2 MB, free: 13.34 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0359/0.3556, allocations: 22.72 MB / 464.9 MB, free: 5.844 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009831/0.3655, allocations: 10.81 MB / 475.7 MB, free: 9.359 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001428/0.3669, allocations: 0.8539 MB / 476.6 MB, free: 8.508 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005516/0.3725, allocations: 3.507 MB / 480.1 MB, free: 4.652 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.77e-05/0.3725, allocations: 34.56 kB / 480.1 MB, free: 4.609 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 2.374e-06/0.3726, allocations: 4 kB / 480.1 MB, free: 4.605 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0007575/0.3733, allocations: 336.1 kB / 480.4 MB, free: 4.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.485e-05/0.3734, allocations: 51.41 kB / 480.5 MB, free: 4.207 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003266/0.3767, allocations: 2.129 MB / 482.6 MB, free: 2.07 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.459e-05/0.3767, allocations: 25.7 kB / 482.6 MB, free: 2.039 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001442/0.3781, allocations: 2.374 MB / 485 MB, free: 15.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.956e-05/0.3783, allocations: 91.33 kB / 485.1 MB, free: 15.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.3784, allocations: 48 kB / 485.1 MB, free: 15.49 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002496/0.3786, allocations: 467.7 kB / 485.6 MB, free: 15.03 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001262/0.3799, allocations: 0.8362 MB / 486.4 MB, free: 14.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002099/0.382, allocations: 2.263 MB / 488.7 MB, free: 11.22 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003067/0.3851, allocations: 3.031 MB / 491.7 MB, free: 7.484 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.343e-05/0.3851, allocations: 12 kB / 491.7 MB, free: 7.473 MB / 378.7 MB Notification: Performance of matching and sorting (n=314) (initialization): time 0.005041/0.3902, allocations: 3.076 MB / 494.8 MB, free: 4.391 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.262e-05/0.3902, allocations: 24.94 kB / 494.8 MB, free: 4.367 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.111e-05/0.3903, allocations: 52 kB / 494.9 MB, free: 4.316 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.052e-05/0.3904, allocations: 68 kB / 495 MB, free: 4.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001589/0.392, allocations: 0.5732 MB / 495.5 MB, free: 3.676 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.53e-05/0.3921, allocations: 95.66 kB / 495.6 MB, free: 3.582 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001965/0.3941, allocations: 404.2 kB / 496 MB, free: 3.184 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001934/0.3943, allocations: 151.9 kB / 496.2 MB, free: 3.035 MB / 378.7 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 (310): * Single equations (assignments): 306 * 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.002549/0.3968, allocations: 1.738 MB / 497.9 MB, free: 1.285 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002996/0.3971, allocations: 130.3 kB / 498 MB, free: 1.156 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006501/0.3978, allocations: 310.9 kB / 498.3 MB, free: 0.8438 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001996/0.398, allocations: 165.6 kB / 498.5 MB, free: 0.6758 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.398, allocations: 0 / 498.5 MB, free: 0.6758 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.398, allocations: 4 kB / 498.5 MB, free: 0.6719 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005818/0.4039, allocations: 3.159 MB / 0.4899 GB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.4039, allocations: 0 / 0.4899 GB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.992e-05/0.404, allocations: 11.98 kB / 0.4899 GB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.221e-06/0.404, allocations: 4 kB / 0.4899 GB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.404, allocations: 4.219 kB / 0.4899 GB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.316e-06/0.404, allocations: 0 / 0.4899 GB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.404, allocations: 0 / 0.4899 GB, free: 13.44 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005876/0.4046, allocations: 498.3 kB / 0.4904 GB, free: 12.93 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004699/0.4051, allocations: 259.2 kB / 0.4906 GB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002209/0.4053, allocations: 7.938 kB / 0.4907 GB, free: 12.65 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005179/0.4059, allocations: 27.95 kB / 0.4907 GB, free: 12.62 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.747e-05/0.4059, allocations: 7.984 kB / 0.4907 GB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.4059, allocations: 4 kB / 0.4907 GB, free: 12.61 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001887/0.4078, allocations: 1.388 MB / 0.492 GB, free: 11.23 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4078, allocations: 0 / 0.492 GB, free: 11.23 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002576/0.4104, allocations: 0.9864 MB / 0.493 GB, free: 10.23 MB / 394.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.0009935/0.4114, allocations: 1.072 MB / 0.4941 GB, free: 9.133 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002407/0.4138, allocations: 1.535 MB / 0.4956 GB, free: 7.598 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4138, allocations: 0 / 0.4956 GB, free: 7.598 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001185/0.414, allocations: 79.91 kB / 0.4956 GB, free: 7.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001757/0.4157, allocations: 323.5 kB / 0.4959 GB, free: 7.207 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1848/0.6005, allocations: 15.34 MB / 0.5109 GB, free: 117.4 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00256/0.6032, allocations: 3.047 MB / 0.5139 GB, free: 115.5 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00129/0.6045, allocations: 1.348 MB / 0.5152 GB, free: 114.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.362e-06/0.6045, allocations: 0 / 0.5152 GB, free: 114.3 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.042/4.646, allocations: 55.58 MB / 0.5695 GB, free: 62.47 MB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar.fmu > 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