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.001674/0.001674, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.002337/0.002337, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.972/1.972, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001219/0.001219, allocations: 55.84 kB / 300.7 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1179/0.1191, 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.02266/0.1419, allocations: 9.736 MB / 359.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01054/0.1525, allocations: 2.69 MB / 362.6 MB, free: 7.832 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003105/0.1556, allocations: 71.81 kB / 362.7 MB, free: 7.762 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01742/0.1732, allocations: 4.183 MB / 366.8 MB, free: 3.57 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006143/0.1793, allocations: 0.9164 MB / 367.8 MB, free: 2.648 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004189/0.1835, allocations: 0.8177 MB / 368.6 MB, free: 1.832 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2751/0.4586, allocations: 4.019 MB / 372.6 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01857/0.4773, allocations: 11.01 MB / 383.6 MB, free: 6.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005197/0.4825, allocations: 2.345 MB / 385.9 MB, free: 5.352 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006369/0.4889, allocations: 2.645 MB / 388.6 MB, free: 4.066 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003182/0.4922, allocations: 0.6624 MB / 389.3 MB, free: 4.066 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004466/0.4967, allocations: 0.8753 MB / 390.1 MB, free: 4.012 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003048/0.4998, allocations: 1.242 MB / 391.4 MB, free: 3.137 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006603/0.5064, allocations: 2.555 MB / 393.9 MB, free: 1.387 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01594/0.5224, allocations: 8.848 MB / 402.8 MB, free: 11.71 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.558e-06/0.5225, allocations: 0 / 402.8 MB, free: 11.71 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.5225, allocations: 0 / 402.8 MB, free: 11.71 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003029/0.5228, allocations: 0 / 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.0265/0.5493, allocations: 5.313 MB / 408.1 MB, free: 6.367 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/0.5494, allocations: 8.031 kB / 408.1 MB, free: 6.359 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002366/0.5518, allocations: 0.6539 MB / 408.8 MB, free: 5.695 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01393/0.5658, allocations: 1.292 MB / 410 MB, free: 4.414 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004843/0.5706, allocations: 2.509 MB / 412.6 MB, free: 1.984 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003178/0.571, allocations: 347.6 kB / 412.9 MB, free: 1.645 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001336/0.5723, allocations: 463.8 kB / 413.3 MB, free: 1.195 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02145/0.5938, allocations: 6.092 MB / 419.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002322/0.5941, allocations: 4 kB / 419.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001539/0.5957, allocations: 192 kB / 419.6 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003301/0.596, allocations: 197.5 kB / 419.8 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02003/0.6161, allocations: 5.268 MB / 425.1 MB, free: 5.398 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0597/0.6758, allocations: 21.01 MB / 446.1 MB, free: 112 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01077/0.6867, allocations: 5.581 MB / 451.7 MB, free: 9.766 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002173/0.6889, allocations: 0.6629 MB / 452.3 MB, free: 9.105 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002838/0.6892, allocations: 105.7 kB / 452.4 MB, free: 8.988 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.708e-05/0.6893, allocations: 43.56 kB / 452.5 MB, free: 8.938 MB / 366.1 MB Notification: Performance of pre-optimization done (n=94): time 7.184e-06/0.6893, allocations: 0 / 452.5 MB, free: 8.938 MB / 366.1 MB Notification: Performance of matching and sorting (n=94): time 0.004018/0.6934, allocations: 1.428 MB / 453.9 MB, free: 7.504 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.986e-05/0.6935, allocations: 60.41 kB / 454 MB, free: 7.434 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003862/0.6974, allocations: 1.461 MB / 455.4 MB, free: 5.961 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000152/0.6976, allocations: 41.7 kB / 455.5 MB, free: 5.914 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002038/0.6996, allocations: 1.966 MB / 457.4 MB, free: 3.934 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005358/0.7002, allocations: 342.4 kB / 457.8 MB, free: 3.602 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001231/0.7014, allocations: 475.5 kB / 458.2 MB, free: 3.129 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000227/0.7017, allocations: 357.9 kB / 458.6 MB, free: 2.773 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002346/0.704, allocations: 0.8085 MB / 459.4 MB, free: 1.961 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003463/0.7075, allocations: 1.943 MB / 461.3 MB, free: 15.49 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005936/0.7135, allocations: 2.924 MB / 464.3 MB, free: 12.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.306e-05/0.7136, allocations: 12 kB / 464.3 MB, free: 12.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=283) (initialization): time 0.008226/0.7218, allocations: 2.783 MB / 467.1 MB, free: 9.609 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.76e-05/0.7219, allocations: 28.25 kB / 467.1 MB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.712e-05/0.722, allocations: 43.94 kB / 467.1 MB, free: 9.539 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001084/0.7222, allocations: 52 kB / 467.2 MB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003493/0.7257, allocations: 0.538 MB / 467.7 MB, free: 8.992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001197/0.7258, allocations: 81.69 kB / 467.8 MB, free: 8.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002791/0.7286, allocations: 289 kB / 468.1 MB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003416/0.729, allocations: 132 kB / 468.2 MB, free: 8.516 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.004634/0.7336, allocations: 1.664 MB / 469.9 MB, free: 6.883 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004933/0.7341, allocations: 126.4 kB / 470 MB, free: 6.758 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00414/0.7383, allocations: 1.345 MB / 471.3 MB, free: 5.387 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002528/0.7409, allocations: 0.9312 MB / 472.3 MB, free: 4.453 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.371e-05/0.7409, allocations: 4 kB / 472.3 MB, free: 4.449 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-05/0.7409, allocations: 3.984 kB / 472.3 MB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03257/0.7735, allocations: 12.21 MB / 484.5 MB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.924e-05/0.7736, allocations: 20 kB / 484.5 MB, free: 7.754 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001684/0.7753, allocations: 212.3 kB / 484.7 MB, free: 7.562 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.122e-05/0.7754, allocations: 24 kB / 484.7 MB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001607/0.7756, allocations: 47.98 kB / 484.8 MB, free: 7.492 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.118e-05/0.7757, allocations: 38.48 kB / 484.8 MB, free: 7.465 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.812e-05/0.7757, allocations: 30.59 kB / 484.9 MB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005697/0.7814, allocations: 2.44 MB / 487.3 MB, free: 4.734 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/0.7826, allocations: 319.2 kB / 487.6 MB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004379/0.783, allocations: 43.98 kB / 487.6 MB, free: 4.359 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00171/0.7848, allocations: 67.89 kB / 487.7 MB, free: 4.293 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003151/0.7851, allocations: 133.4 kB / 487.8 MB, free: 4.18 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001588/0.7853, allocations: 51.98 kB / 487.9 MB, free: 4.129 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002977/0.7883, allocations: 0.9955 MB / 488.9 MB, free: 3.129 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.102e-06/0.7883, allocations: 0 / 488.9 MB, free: 3.129 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005458/0.7938, allocations: 0.9398 MB / 489.8 MB, free: 2.184 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.00619/0.8, allocations: 3.097 MB / 492.9 MB, free: 14.83 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005376/0.8055, allocations: 1.875 MB / 494.8 MB, free: 13.1 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.197e-05/0.8055, allocations: 5 kB / 494.8 MB, free: 13.1 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001608/0.8071, allocations: 0.5681 MB / 495.4 MB, free: 12.59 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004346/0.8115, allocations: 388.3 kB / 495.8 MB, free: 12.22 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05657/0.8681, allocations: 20.22 MB / 0.5039 GB, free: 6.113 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006898/0.8751, allocations: 3.075 MB / 0.5069 GB, free: 3.008 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.004137/0.8793, allocations: 0.821 MB / 0.5077 GB, free: 2.18 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003268/0.8826, allocations: 1.249 MB / 0.5089 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of SimCode: time 1.633e-06/0.8826, allocations: 0 / 0.5089 GB, free: 0.9297 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3723/1.255, allocations: 41.38 MB / 0.5493 GB, free: 144 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/13.44, allocations: 5.625 kB / 0.5493 GB, free: 144 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Polyphase.Examples.BalancingStar_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 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.csv","/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