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) 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 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Polyphase_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.001566/0.001566, allocations: 108.4 kB / 16.92 MB, free: 5.785 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.001969/0.001969, allocations: 191.5 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001082/0.001082, allocations: 42.84 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08738/0.08848, allocations: 49.44 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar): time 0.01023/0.09873, allocations: 9.727 MB / 359.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005127/0.1039, allocations: 2.682 MB / 362.6 MB, free: 7.848 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001373/0.1053, allocations: 79.75 kB / 362.7 MB, free: 7.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008873/0.1142, allocations: 4.184 MB / 366.8 MB, free: 3.574 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004441/0.1187, allocations: 0.9154 MB / 367.8 MB, free: 2.656 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002247/0.1209, allocations: 0.8284 MB / 368.6 MB, free: 1.832 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1728/0.2937, allocations: 4.017 MB / 372.6 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01299/0.3068, allocations: 11 MB / 383.6 MB, free: 6.422 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004266/0.3111, allocations: 2.348 MB / 385.9 MB, free: 5.359 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004584/0.3157, allocations: 2.652 MB / 388.6 MB, free: 4.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001465/0.3172, allocations: 0.663 MB / 389.3 MB, free: 4.07 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00201/0.3192, allocations: 0.876 MB / 390.1 MB, free: 4.012 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009022/0.3201, allocations: 1.237 MB / 391.4 MB, free: 3.141 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002739/0.3229, allocations: 2.56 MB / 393.9 MB, free: 1.391 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006891/0.3298, allocations: 8.846 MB / 402.8 MB, free: 11.72 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.3298, allocations: 4 kB / 402.8 MB, free: 11.71 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3298, allocations: 0 / 402.8 MB, free: 11.71 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001637/0.33, allocations: 4 kB / 402.8 MB, free: 11.71 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: 1224 * Number of variables: 1224 Notification: Performance of Generate backend data structure: time 0.01443/0.3444, allocations: 5.301 MB / 408.1 MB, free: 6.379 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.79e-05/0.3445, allocations: 12.02 kB / 408.1 MB, free: 6.367 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001928/0.3464, allocations: 0.6529 MB / 408.8 MB, free: 5.707 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008305/0.3547, allocations: 1.294 MB / 410 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005348/0.3601, allocations: 2.511 MB / 412.6 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003484/0.3605, allocations: 349.2 kB / 412.9 MB, free: 1.652 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001457/0.362, allocations: 459.8 kB / 413.3 MB, free: 1.203 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01441/0.3764, allocations: 6.093 MB / 419.4 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001525/0.3766, allocations: 0 / 419.4 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009934/0.3776, allocations: 190.6 kB / 419.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001952/0.3778, allocations: 193.5 kB / 419.8 MB, free: 10.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01085/0.3887, allocations: 5.272 MB / 425.1 MB, free: 5.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03227/0.421, allocations: 21.02 MB / 446.1 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006527/0.4275, allocations: 5.566 MB / 451.7 MB, free: 9.781 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001162/0.4287, allocations: 0.6668 MB / 452.3 MB, free: 9.117 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001894/0.4289, allocations: 111.3 kB / 452.4 MB, free: 8.996 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.836e-05/0.429, allocations: 46.94 kB / 452.5 MB, free: 8.945 MB / 366.1 MB Notification: Performance of pre-optimization done (n=94): time 3.727e-06/0.429, allocations: 0 / 452.5 MB, free: 8.945 MB / 366.1 MB Notification: Performance of matching and sorting (n=94): time 0.002288/0.4313, allocations: 1.416 MB / 453.9 MB, free: 7.52 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.371e-05/0.4314, allocations: 64.41 kB / 454 MB, free: 7.445 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002309/0.4337, allocations: 1.465 MB / 455.4 MB, free: 5.969 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.833e-05/0.4338, allocations: 41.7 kB / 455.5 MB, free: 5.922 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001154/0.435, allocations: 1.961 MB / 457.4 MB, free: 3.945 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000296/0.4353, allocations: 347.1 kB / 457.8 MB, free: 3.609 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006303/0.4359, allocations: 475.5 kB / 458.2 MB, free: 3.137 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.4361, allocations: 353.9 kB / 458.6 MB, free: 2.785 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001204/0.4373, allocations: 0.8085 MB / 459.4 MB, free: 1.973 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002017/0.4393, allocations: 1.947 MB / 461.3 MB, free: 15.5 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003286/0.4426, allocations: 2.925 MB / 464.3 MB, free: 12.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.73e-05/0.4427, allocations: 12 kB / 464.3 MB, free: 12.17 MB / 382.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.004373/0.447, allocations: 2.781 MB / 467.1 MB, free: 9.617 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.127e-05/0.4471, allocations: 26.97 kB / 467.1 MB, free: 9.594 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.663e-05/0.4472, allocations: 36 kB / 467.1 MB, free: 9.559 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.235e-05/0.4472, allocations: 60.78 kB / 467.2 MB, free: 9.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001606/0.4488, allocations: 0.542 MB / 467.7 MB, free: 9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.878e-05/0.4489, allocations: 82 kB / 467.8 MB, free: 8.938 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00135/0.4503, allocations: 289.1 kB / 468.1 MB, free: 8.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001776/0.4505, allocations: 128 kB / 468.2 MB, free: 8.527 MB / 382.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.00243/0.4529, allocations: 1.664 MB / 469.9 MB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002801/0.4532, allocations: 130.4 kB / 470 MB, free: 6.766 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002204/0.4554, allocations: 1.341 MB / 471.3 MB, free: 5.398 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001216/0.4566, allocations: 0.9274 MB / 472.3 MB, free: 4.469 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.4567, allocations: 3.984 kB / 472.3 MB, free: 4.465 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.056e-05/0.4567, allocations: 3.984 kB / 472.3 MB, free: 4.461 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0163/0.473, allocations: 12.21 MB / 484.5 MB, free: 7.789 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.664e-05/0.4731, allocations: 16 kB / 484.5 MB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007584/0.4738, allocations: 218.1 kB / 484.7 MB, free: 7.578 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.779e-05/0.4739, allocations: 24 kB / 484.7 MB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.224e-05/0.474, allocations: 47.98 kB / 484.8 MB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.557e-05/0.474, allocations: 39.48 kB / 484.8 MB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-05/0.474, allocations: 35 kB / 484.9 MB, free: 7.453 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002924/0.477, allocations: 2.434 MB / 487.3 MB, free: 4.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006031/0.4776, allocations: 315.3 kB / 487.6 MB, free: 4.422 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002705/0.4779, allocations: 51.58 kB / 487.7 MB, free: 4.375 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000829/0.4787, allocations: 75.81 kB / 487.7 MB, free: 4.301 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.4789, allocations: 130.7 kB / 487.9 MB, free: 4.188 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.088e-05/0.479, allocations: 48 kB / 487.9 MB, free: 4.141 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001546/0.4805, allocations: 0.9916 MB / 488.9 MB, free: 3.145 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4805, allocations: 0 / 488.9 MB, free: 3.145 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002836/0.4834, allocations: 0.9437 MB / 489.8 MB, free: 2.195 MB / 398.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.003646/0.487, allocations: 3.097 MB / 492.9 MB, free: 14.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002891/0.4899, allocations: 1.878 MB / 494.8 MB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.062e-05/0.49, allocations: 0 / 494.8 MB, free: 13.11 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008013/0.4908, allocations: 0.5742 MB / 495.4 MB, free: 12.6 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002277/0.4931, allocations: 386.3 kB / 495.8 MB, free: 12.23 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02953/0.5226, allocations: 20.22 MB / 0.5039 GB, free: 6.129 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003327/0.526, allocations: 3.075 MB / 0.5069 GB, free: 3.023 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001967/0.5279, allocations: 0.817 MB / 0.5077 GB, free: 2.199 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001533/0.5295, allocations: 1.257 MB / 0.5089 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5295, allocations: 0 / 0.5089 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2189/0.7485, allocations: 41.37 MB / 0.5493 GB, free: 144.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.9/8.649, allocations: 9.453 kB / 0.5493 GB, free: 144.1 MB / 446.1 MB (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 --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) 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) Reference file matches