Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,fileNamePrefix="Modelica_3_2_3_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_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001809/0.001809, allocations: 112.2 kB / 17.28 MB, free: 6.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002336/0.002336, allocations: 189.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.662/1.662, allocations: 205.1 MB / 224.1 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 47.92 kB / 280.3 MB, free: 3.395 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1284/0.1297, allocations: 46.63 MB / 326.9 MB, free: 4.703 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar): time 0.01349/0.1433, allocations: 9.96 MB / 336.8 MB, free: 10.69 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007494/0.1508, allocations: 2.757 MB / 339.6 MB, free: 7.918 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001255/0.1521, allocations: 67.81 kB / 339.7 MB, free: 7.852 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008911/0.1611, allocations: 3.997 MB / 343.7 MB, free: 3.84 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003078/0.1641, allocations: 0.9293 MB / 344.6 MB, free: 2.906 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00181/0.166, allocations: 0.7677 MB / 345.4 MB, free: 2.137 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005136/0.1711, allocations: 4.249 MB / 349.6 MB, free: 13.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01614/0.1873, allocations: 12.77 MB / 362.4 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003818/0.1911, allocations: 2.486 MB / 364.9 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003965/0.1951, allocations: 2.807 MB / 367.7 MB, free: 11.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001004/0.1961, allocations: 0.6797 MB / 368.4 MB, free: 11 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001899/0.198, allocations: 0.8943 MB / 369.2 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001167/0.1992, allocations: 1.317 MB / 370.6 MB, free: 8.785 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00327/0.2025, allocations: 2.673 MB / 373.2 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2683/0.4708, allocations: 9.03 MB / 382.3 MB, free: 31.58 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.32e-05/0.4709, allocations: 0 / 382.3 MB, free: 31.58 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.537e-06/0.4709, allocations: 1.375 kB / 382.3 MB, free: 31.58 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003655/0.4713, allocations: 0 / 382.3 MB, free: 31.58 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: 1303 * Number of variables: 1303 Notification: Performance of Generate backend data structure: time 0.01592/0.4872, allocations: 5.593 MB / 387.9 MB, free: 30.08 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.593e-05/0.4873, allocations: 10.03 kB / 387.9 MB, free: 30.08 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001119/0.4884, allocations: 0.6922 MB / 388.6 MB, free: 30.02 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01362/0.502, allocations: 2.39 MB / 391 MB, free: 29.78 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006326/0.5084, allocations: 2.37 MB / 393.3 MB, free: 29.11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000355/0.5088, allocations: 371.6 kB / 393.7 MB, free: 28.94 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001107/0.5099, allocations: 477.9 kB / 394.2 MB, free: 28.78 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01278/0.5227, allocations: 6.656 MB / 400.8 MB, free: 24.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.87e-05/0.5228, allocations: 8.75 kB / 400.8 MB, free: 24.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004848/0.5233, allocations: 198.5 kB / 401 MB, free: 24.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002332/0.5235, allocations: 231 kB / 401.2 MB, free: 24.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009643/0.5332, allocations: 6.135 MB / 407.4 MB, free: 21.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02803/0.5612, allocations: 22.64 MB / 430 MB, free: 14.99 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01234/0.5736, allocations: 10.82 MB / 440.8 MB, free: 2.492 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001542/0.5752, allocations: 0.8578 MB / 441.7 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006463/0.5817, allocations: 3.511 MB / 445.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.541e-05/0.5818, allocations: 36.2 kB / 445.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 2.945e-06/0.5818, allocations: 1.125 kB / 445.2 MB, free: 13.77 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.00072/0.5825, allocations: 336.1 kB / 445.6 MB, free: 13.44 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.094e-05/0.5826, allocations: 59.41 kB / 445.6 MB, free: 13.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003491/0.5861, allocations: 2.141 MB / 447.8 MB, free: 11.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.176e-05/0.5861, allocations: 29.7 kB / 447.8 MB, free: 11.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001829/0.5879, allocations: 2.365 MB / 450.2 MB, free: 8.809 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.665e-05/0.588, allocations: 91.39 kB / 450.3 MB, free: 8.719 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008286/0.5889, allocations: 0.5507 MB / 450.8 MB, free: 8.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002028/0.5891, allocations: 357.9 kB / 451.2 MB, free: 7.805 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001325/0.5904, allocations: 0.8519 MB / 452 MB, free: 6.949 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002524/0.593, allocations: 2.272 MB / 454.3 MB, free: 3.996 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003627/0.5966, allocations: 3.037 MB / 457.3 MB, free: 480 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.757e-05/0.5966, allocations: 19.94 kB / 457.3 MB, free: 460 kB / 350.1 MB Notification: Performance of matching and sorting (n=314) (initialization): time 0.004986/0.6016, allocations: 3.093 MB / 460.4 MB, free: 13.65 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.632e-05/0.6017, allocations: 28 kB / 460.5 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.563e-05/0.6018, allocations: 48 kB / 460.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001148/0.6019, allocations: 68.75 kB / 460.6 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001662/0.6035, allocations: 0.5714 MB / 461.1 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.723e-05/0.6036, allocations: 102.1 kB / 461.2 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001975/0.6056, allocations: 404.2 kB / 461.6 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001848/0.6058, allocations: 148 kB / 461.8 MB, free: 12.36 MB / 366.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003383/0.6092, allocations: 1.729 MB / 463.5 MB, free: 10.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000315/0.6095, allocations: 130.3 kB / 463.6 MB, free: 10.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005365/0.6101, allocations: 321.6 kB / 463.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002255/0.6103, allocations: 163.7 kB / 464.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.117e-06/0.6103, allocations: 0 / 464.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.6104, allocations: 0 / 464.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004689/0.615, allocations: 3.161 MB / 467.3 MB, free: 6.848 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.6151, allocations: 3.984 kB / 467.3 MB, free: 6.844 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.095e-05/0.6151, allocations: 18.19 kB / 467.3 MB, free: 6.828 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.6152, allocations: 4 kB / 467.3 MB, free: 6.824 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.6152, allocations: 4 kB / 467.3 MB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.6152, allocations: 0 / 467.3 MB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.6152, allocations: 3.938 kB / 467.3 MB, free: 6.816 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005606/0.6158, allocations: 491.5 kB / 467.8 MB, free: 6.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003211/0.6161, allocations: 229.8 kB / 468 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001352/0.6162, allocations: 8.062 kB / 468 MB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004364/0.6167, allocations: 27.95 kB / 468 MB, free: 6.043 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.138e-05/0.6167, allocations: 11.94 kB / 468.1 MB, free: 6.031 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-05/0.6167, allocations: 3.984 kB / 468.1 MB, free: 6.027 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001883/0.6186, allocations: 1.4 MB / 469.5 MB, free: 4.633 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.6186, allocations: 0 / 469.5 MB, free: 4.633 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002977/0.6216, allocations: 0.9825 MB / 470.4 MB, free: 3.645 MB / 366.1 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 (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.001212/0.6228, allocations: 1.082 MB / 471.5 MB, free: 2.543 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002211/0.6251, allocations: 1.55 MB / 473.1 MB, free: 1.133 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.6251, allocations: 480 / 473.1 MB, free: 1.133 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001133/0.6252, allocations: 79.44 kB / 473.2 MB, free: 1.059 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001538/0.6267, allocations: 340.8 kB / 473.5 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03442/0.6612, allocations: 22.07 MB / 495.6 MB, free: 8.895 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003219/0.6645, allocations: 3.132 MB / 498.7 MB, free: 5.734 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001969/0.6664, allocations: 0.7984 MB / 499.5 MB, free: 4.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001562/0.668, allocations: 1.315 MB / 0.4891 GB, free: 3.613 MB / 398.1 MB Notification: Performance of SimCode: time 9.71e-07/0.668, allocations: 0 / 0.4891 GB, free: 3.613 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09072/0.7587, allocations: 42.61 MB / 0.5307 GB, free: 8.984 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002808/0.7591, allocations: 223.6 kB / 0.5309 GB, free: 8.734 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.993/3.752, allocations: 3.938 kB / 0.5309 GB, free: 8.73 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_BalancingStar.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches