Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001556/0.001556, allocations: 101.5 kB / 21.21 MB, free: 0.6523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001535/0.001535, allocations: 184.4 kB / 24.49 MB, free: 3.961 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.352/1.352, allocations: 225.7 MB / 253.3 MB, free: 12.86 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.QuasiStatic.Polyphase.Examples.BalancingStar,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001459/0.001459, allocations: 47.92 kB / 371.2 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2374/0.2389, allocations: 52.19 MB / 423.4 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar): time 0.01029/0.2492, allocations: 8.496 MB / 431.9 MB, free: 5.871 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005517/0.2547, allocations: 2.573 MB / 434.4 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002204/0.2569, allocations: 95.5 kB / 434.5 MB, free: 3.195 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009221/0.2661, allocations: 3.895 MB / 438.4 MB, free: 15.29 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003244/0.2694, allocations: 0.9165 MB / 439.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002229/0.2716, allocations: 0.8102 MB / 440.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005169/0.2768, allocations: 4.089 MB / 444.2 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01158/0.2883, allocations: 7.113 MB / 451.4 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003242/0.2916, allocations: 2.404 MB / 453.8 MB, free: 15.81 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004109/0.2957, allocations: 2.663 MB / 456.4 MB, free: 13.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001609/0.2973, allocations: 0.6641 MB / 457.1 MB, free: 12.47 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002273/0.2996, allocations: 0.8748 MB / 458 MB, free: 11.6 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001696/0.3013, allocations: 1.243 MB / 459.2 MB, free: 10.35 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003509/0.3048, allocations: 1.988 MB / 461.2 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009933/0.3147, allocations: 8.944 MB / 470.1 MB, free: 15.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.3147, allocations: 0 / 470.1 MB, free: 15.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3147, allocations: 0 / 470.1 MB, free: 15.38 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002021/0.3149, allocations: 0 / 470.1 MB, free: 15.38 MB / 382.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.01426/0.3292, allocations: 5.331 MB / 475.5 MB, free: 9.996 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.3292, allocations: 12.03 kB / 475.5 MB, free: 9.984 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001304/0.3294, allocations: 125.6 kB / 475.6 MB, free: 9.859 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001673/0.331, allocations: 0.6578 MB / 476.3 MB, free: 9.191 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007963/0.339, allocations: 1.31 MB / 477.6 MB, free: 7.879 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005766/0.3448, allocations: 2.605 MB / 480.2 MB, free: 5.242 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003624/0.3451, allocations: 349.4 kB / 480.5 MB, free: 4.898 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001412/0.3465, allocations: 448 kB / 481 MB, free: 4.461 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01527/0.3618, allocations: 6.123 MB / 487.1 MB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001649/0.362, allocations: 11.95 kB / 487.1 MB, free: 14.27 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001037/0.363, allocations: 187.9 kB / 487.3 MB, free: 14.09 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002343/0.3632, allocations: 193.5 kB / 487.5 MB, free: 13.9 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01108/0.3743, allocations: 5.272 MB / 492.7 MB, free: 8.617 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03572/0.41, allocations: 18.58 MB / 0.4993 GB, free: 5.398 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005193/0.4152, allocations: 2.074 MB / 0.5014 GB, free: 3.387 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001147/0.4164, allocations: 0.6039 MB / 0.5019 GB, free: 2.785 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001571/0.4165, allocations: 28.98 kB / 0.502 GB, free: 2.754 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.777e-05/0.4166, allocations: 47.5 kB / 0.502 GB, free: 2.699 MB / 414.1 MB Notification: Performance of pre-optimization done (n=94): time 3.897e-06/0.4166, allocations: 0 / 0.502 GB, free: 2.699 MB / 414.1 MB Notification: Performance of matching and sorting (n=94): time 0.002629/0.4192, allocations: 1.429 MB / 0.5034 GB, free: 1.27 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.991e-05/0.4193, allocations: 64.41 kB / 0.5035 GB, free: 1.191 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002552/0.4218, allocations: 1.458 MB / 0.5049 GB, free: 15.72 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.561e-05/0.4219, allocations: 41.7 kB / 0.5049 GB, free: 15.68 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001401/0.4233, allocations: 2.037 MB / 0.5069 GB, free: 13.62 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003403/0.4236, allocations: 369 kB / 0.5073 GB, free: 13.25 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000663/0.4243, allocations: 471.9 kB / 0.5077 GB, free: 12.79 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.4245, allocations: 361.9 kB / 0.5081 GB, free: 12.43 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00122/0.4257, allocations: 0.8085 MB / 0.5089 GB, free: 11.61 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002278/0.428, allocations: 1.945 MB / 0.5108 GB, free: 9.113 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00344/0.4314, allocations: 2.924 MB / 0.5136 GB, free: 5.641 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.718e-05/0.4315, allocations: 12 kB / 0.5136 GB, free: 5.629 MB / 430.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004336/0.4358, allocations: 2.79 MB / 0.5164 GB, free: 2.832 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.464e-05/0.4358, allocations: 20 kB / 0.5164 GB, free: 2.812 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.826e-05/0.4359, allocations: 44 kB / 0.5164 GB, free: 2.77 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.823e-05/0.436, allocations: 56 kB / 0.5165 GB, free: 2.715 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00161/0.4376, allocations: 0.5342 MB / 0.517 GB, free: 2.18 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.156e-05/0.4377, allocations: 79.66 kB / 0.5171 GB, free: 2.102 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001291/0.4389, allocations: 302.2 kB / 0.5174 GB, free: 1.805 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001841/0.4391, allocations: 124 kB / 0.5175 GB, free: 1.684 MB / 430.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 (282): * Single equations (assignments): 281 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.002377/0.4415, allocations: 1.671 MB / 0.5191 GB, free: 0 / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002887/0.4418, allocations: 135.3 kB / 0.5192 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002205/0.444, allocations: 1.338 MB / 0.5205 GB, free: 14.51 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001276/0.4453, allocations: 0.9357 MB / 0.5215 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.4453, allocations: 3.938 kB / 0.5215 GB, free: 13.56 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.138e-05/0.4453, allocations: 7.984 kB / 0.5215 GB, free: 13.55 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01732/0.4626, allocations: 10.9 MB / 0.5321 GB, free: 2.34 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-05/0.4627, allocations: 20 kB / 0.5321 GB, free: 2.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008445/0.4635, allocations: 207.6 kB / 0.5323 GB, free: 2.117 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-05/0.4636, allocations: 27.94 kB / 0.5324 GB, free: 2.09 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000125/0.4637, allocations: 48.67 kB / 0.5324 GB, free: 2.043 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.839e-05/0.4637, allocations: 35.86 kB / 0.5324 GB, free: 2.008 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.152e-05/0.4638, allocations: 39.81 kB / 0.5325 GB, free: 1.969 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003707/0.4675, allocations: 2.447 MB / 0.5349 GB, free: 15.23 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006893/0.4681, allocations: 262.7 kB / 0.5351 GB, free: 14.98 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003172/0.4685, allocations: 43.98 kB / 0.5352 GB, free: 14.93 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000826/0.4693, allocations: 63.94 kB / 0.5352 GB, free: 14.87 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/0.4695, allocations: 131.4 kB / 0.5353 GB, free: 14.74 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.008e-05/0.4696, allocations: 56.06 kB / 0.5354 GB, free: 14.69 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001753/0.4713, allocations: 0.9877 MB / 0.5364 GB, free: 13.7 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4713, allocations: 0 / 0.5364 GB, free: 13.7 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002925/0.4742, allocations: 0.9608 MB / 0.5373 GB, free: 12.73 MB / 462.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 (98): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.003668/0.4779, allocations: 3.088 MB / 0.5403 GB, free: 9.352 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002977/0.4809, allocations: 1.802 MB / 0.5421 GB, free: 7.551 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.387e-05/0.4809, allocations: 4 kB / 0.5421 GB, free: 7.547 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008766/0.4818, allocations: 0.5522 MB / 0.5426 GB, free: 7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002267/0.484, allocations: 388.3 kB / 0.543 GB, free: 6.625 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2283/0.7123, allocations: 19.62 MB / 0.5622 GB, free: 113.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002058/0.7144, allocations: 2.53 MB / 0.5646 GB, free: 112.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001487/0.7158, allocations: 0.8065 MB / 0.5654 GB, free: 112.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001176/0.717, allocations: 1.257 MB / 0.5666 GB, free: 111.2 MB / 462.1 MB Notification: Performance of SimCode: time 2.084e-06/0.717, allocations: 0 / 0.5666 GB, free: 111.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06668/0.7837, allocations: 44.67 MB / 0.6103 GB, free: 67.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.69, allocations: 4.062 kB / 0.6103 GB, free: 67.2 MB / 462.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_Examples_BalancingStar.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.36285814794246]