Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.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.UnsymmetricalLoad,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_UnsymmetricalLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_UnsymmetricalLoad",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: 113.2 kB / 17.73 MB, free: 5.336 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.001759/0.001759, allocations: 188.2 kB / 18.67 MB, free: 4.402 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.497/1.497, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.001292/0.001292, allocations: 55.92 kB / 328 MB, free: 3.793 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08919/0.09049, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad): time 0.2146/0.3051, allocations: 14.61 MB / 389.3 MB, free: 4.621 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009644/0.3148, allocations: 3.94 MB / 393.2 MB, free: 2.246 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003744/0.3187, allocations: 92.28 kB / 393.3 MB, free: 2.227 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01231/0.3311, allocations: 5.613 MB / 398.9 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007932/0.339, allocations: 1.757 MB / 400.7 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004045/0.3431, allocations: 1.081 MB / 401.7 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01218/0.3553, allocations: 6.753 MB / 408.5 MB, free: 9.727 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02107/0.3764, allocations: 13.75 MB / 422.3 MB, free: 316 kB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007241/0.3837, allocations: 3.495 MB / 425.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008138/0.3919, allocations: 4.119 MB / 429.9 MB, free: 8.672 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003043/0.395, allocations: 0.918 MB / 430.8 MB, free: 7.754 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004019/0.399, allocations: 1.097 MB / 431.9 MB, free: 6.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002447/0.4015, allocations: 1.929 MB / 433.8 MB, free: 4.723 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006132/0.4076, allocations: 3.789 MB / 437.6 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01547/0.4231, allocations: 12.42 MB / 450 MB, free: 4.465 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/0.4232, allocations: 0 / 450 MB, free: 4.465 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4232, allocations: 0 / 450 MB, free: 4.465 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000409/0.4236, allocations: 4 kB / 450 MB, free: 4.461 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1888 * Number of variables: 1888 Notification: Performance of Generate backend data structure: time 0.02448/0.4481, allocations: 8.437 MB / 458.5 MB, free: 11.94 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.788e-05/0.4482, allocations: 8.031 kB / 458.5 MB, free: 11.93 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003593/0.4518, allocations: 1.141 MB / 459.6 MB, free: 10.77 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03196/0.4837, allocations: 5.107 MB / 464.7 MB, free: 5.656 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008847/0.4926, allocations: 3.559 MB / 468.3 MB, free: 2.043 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005567/0.4932, allocations: 0.5059 MB / 468.8 MB, free: 1.535 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002855/0.4961, allocations: 0.6718 MB / 469.5 MB, free: 0.8633 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02529/0.5214, allocations: 10.49 MB / 479.9 MB, free: 6.328 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000201/0.5217, allocations: 7.953 kB / 480 MB, free: 6.32 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00116/0.5228, allocations: 291.9 kB / 480.2 MB, free: 6.035 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004048/0.5232, allocations: 382.7 kB / 480.6 MB, free: 5.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01958/0.5428, allocations: 9.649 MB / 490.3 MB, free: 12 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05373/0.5966, allocations: 31.62 MB / 0.5096 GB, free: 11.39 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0192/0.6159, allocations: 22.92 MB / 0.532 GB, free: 0.8164 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003155/0.6191, allocations: 1.941 MB / 0.5339 GB, free: 14.88 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009996/0.6291, allocations: 6.247 MB / 0.54 GB, free: 8.293 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.049e-05/0.6292, allocations: 51.94 kB / 0.5401 GB, free: 8.234 MB / 478.1 MB Notification: Performance of pre-optimization done (n=150): time 3.656e-06/0.6292, allocations: 0 / 0.5401 GB, free: 8.234 MB / 478.1 MB Notification: Performance of matching and sorting (n=150): time 0.006428/0.6356, allocations: 3.19 MB / 0.5432 GB, free: 4.992 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.877e-05/0.6357, allocations: 94.55 kB / 0.5433 GB, free: 4.879 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003719/0.6394, allocations: 2.616 MB / 0.5458 GB, free: 2.23 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001755/0.6396, allocations: 53.7 kB / 0.5459 GB, free: 2.172 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.193/0.8327, allocations: 3.245 MB / 0.5491 GB, free: 145.6 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006339/0.8333, allocations: 0.5714 MB / 0.5496 GB, free: 145.3 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001224/0.8346, allocations: 0.808 MB / 0.5504 GB, free: 145.2 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.45e-05/0.8346, allocations: 303 kB / 0.5507 GB, free: 144.9 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002403/0.837, allocations: 1.465 MB / 0.5521 GB, free: 144.9 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002873/0.8399, allocations: 3.263 MB / 0.5553 GB, free: 142.2 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004805/0.8447, allocations: 4.823 MB / 0.56 GB, free: 138.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.429e-05/0.8448, allocations: 18 kB / 0.56 GB, free: 138.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=502) (initialization): time 0.007697/0.8525, allocations: 5.093 MB / 0.565 GB, free: 136.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.67e-05/0.8526, allocations: 32.62 kB / 0.565 GB, free: 136.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-05/0.8527, allocations: 64.44 kB / 0.5651 GB, free: 136.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008446/0.8535, allocations: 339.9 kB / 0.5654 GB, free: 136.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002939/0.8565, allocations: 0.8841 MB / 0.5663 GB, free: 136.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00497/0.8615, allocations: 5.061 MB / 0.5712 GB, free: 132.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003512/0.865, allocations: 0.546 MB / 0.5718 GB, free: 132.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003929/0.8654, allocations: 211.4 kB / 0.572 GB, free: 132.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 278 * 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 (474): * Single equations (assignments): 472 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,22,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004653/0.8701, allocations: 2.33 MB / 0.5742 GB, free: 131 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006072/0.8707, allocations: 234.9 kB / 0.5745 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003759/0.8744, allocations: 2.337 MB / 0.5767 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-05/0.8745, allocations: 19.5 kB / 0.5768 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.8745, allocations: 3.531 kB / 0.5768 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.381e-05/0.8745, allocations: 8.281 kB / 0.5768 GB, free: 130 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008108/0.8826, allocations: 5.352 MB / 0.582 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.275e-05/0.8827, allocations: 4.906 kB / 0.582 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001248/0.8839, allocations: 254.8 kB / 0.5823 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006294/0.8846, allocations: 263.1 kB / 0.5825 GB, free: 127.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001042/0.8847, allocations: 34.91 kB / 0.5825 GB, free: 127.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003858/0.8886, allocations: 4.949 MB / 0.5874 GB, free: 123.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.8886, allocations: 0 / 0.5874 GB, free: 123.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004012/0.8926, allocations: 3.314 MB / 0.5906 GB, free: 122.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009068/0.8935, allocations: 484.3 kB / 0.5911 GB, free: 122 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002921/0.8938, allocations: 27.75 kB / 0.5911 GB, free: 122 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001096/0.8949, allocations: 92.88 kB / 0.5912 GB, free: 122 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001703/0.8951, allocations: 105.7 kB / 0.5913 GB, free: 122 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.638e-05/0.8952, allocations: 47.03 kB / 0.5913 GB, free: 122 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002155/0.8973, allocations: 1.717 MB / 0.593 GB, free: 121.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.8974, allocations: 1.781 kB / 0.593 GB, free: 121.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004434/0.9018, allocations: 1.549 MB / 0.5945 GB, free: 121 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (voltageSource1.plug_p.reference.gamma,voltageSource2.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 (134): * Single equations (assignments): 132 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (2,22,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004131/0.9059, allocations: 3.942 MB / 0.5984 GB, free: 118.2 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004766/0.9107, allocations: 3.518 MB / 0.6018 GB, free: 115.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.233e-06/0.9108, allocations: 8.125 kB / 0.6018 GB, free: 115.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001447/0.9122, allocations: 1.264 MB / 0.603 GB, free: 114 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002606/0.9148, allocations: 495.6 kB / 0.6035 GB, free: 113.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04014/0.955, allocations: 31.08 MB / 0.6339 GB, free: 80.96 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003419/0.9584, allocations: 4.183 MB / 0.638 GB, free: 76.74 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002883/0.9614, allocations: 1.283 MB / 0.6392 GB, free: 75.45 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001997/0.9634, allocations: 2.12 MB / 0.6413 GB, free: 73.34 MB / 478.1 MB Notification: Performance of SimCode: time 7.21e-07/0.9634, allocations: 3.938 kB / 0.6413 GB, free: 73.33 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0976/1.061, allocations: 68.55 MB / 0.7082 GB, free: 4.629 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14/15.06, allocations: 8.062 kB / 0.7082 GB, free: 4.621 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_MultiPhase_Examples_UnsymmetricalLoad.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/MultiPhase/Examples/UnsymmetricalLoad/UnsymmetricalLoad.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.UnsymmetricalLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches