Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.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.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbench",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.001116/0.001116, allocations: 104 kB / 17.58 MB, free: 5.418 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.00184/0.00184, allocations: 192.2 kB / 18.51 MB, free: 4.504 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.312/1.312, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.001266/0.001266, allocations: 47.92 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07862/0.0799, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench): time 0.02843/0.1084, allocations: 29.56 MB / 356.9 MB, free: 6.668 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0149/0.1233, allocations: 7.433 MB / 364.4 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00579/0.1292, allocations: 223.3 kB / 364.6 MB, free: 14.99 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02852/0.1577, allocations: 13.15 MB / 377.7 MB, free: 1.785 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1671/0.3249, allocations: 3.036 MB / 380.8 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005736/0.3306, allocations: 1.894 MB / 382.7 MB, free: 9.742 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02138/0.352, allocations: 18.79 MB / 401.5 MB, free: 8.27 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07214/0.4242, allocations: 45.01 MB / 446.5 MB, free: 4.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01796/0.4422, allocations: 10.53 MB / 457 MB, free: 11.46 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01804/0.4603, allocations: 11.56 MB / 468.6 MB, free: 300 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007509/0.4678, allocations: 2.977 MB / 471.6 MB, free: 13.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01142/0.4793, allocations: 3.226 MB / 474.8 MB, free: 10.13 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009375/0.4887, allocations: 5.759 MB / 480.5 MB, free: 4.48 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01893/0.5077, allocations: 11.22 MB / 491.8 MB, free: 9.344 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04238/0.5501, allocations: 39.43 MB / 0.5187 GB, free: 2.625 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.526e-06/0.5501, allocations: 0 / 0.5187 GB, free: 2.625 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.664e-06/0.5502, allocations: 0 / 0.5187 GB, free: 2.625 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0009384/0.5511, allocations: 0 / 0.5187 GB, free: 2.625 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5161 * Number of variables: 5161 Notification: Performance of Generate backend data structure: time 0.3516/0.9027, allocations: 22.87 MB / 0.5411 GB, free: 130.4 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.183e-05/0.9028, allocations: 14.44 kB / 0.5411 GB, free: 130.4 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01294/0.9158, allocations: 3.108 MB / 0.5441 GB, free: 129 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07534/0.9911, allocations: 12.29 MB / 0.5561 GB, free: 126.3 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01936/1.011, allocations: 10.53 MB / 0.5664 GB, free: 119.6 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009691/1.012, allocations: 1.402 MB / 0.5678 GB, free: 118.9 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005831/1.017, allocations: 1.836 MB / 0.5696 GB, free: 118.3 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06504/1.082, allocations: 30.86 MB / 0.5997 GB, free: 87.93 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004889/1.083, allocations: 19.81 kB / 0.5997 GB, free: 87.91 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004168/1.087, allocations: 0.7581 MB / 0.6005 GB, free: 87.17 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006215/1.088, allocations: 0.9724 MB / 0.6014 GB, free: 86.2 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04333/1.131, allocations: 27.87 MB / 0.6286 GB, free: 58.29 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4533/1.584, allocations: 94.38 MB / 0.7208 GB, free: 115.5 MB / 478.3 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03589/1.62, allocations: 53.35 MB / 0.7729 GB, free: 70.5 MB / 478.3 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007993/1.628, allocations: 5.842 MB / 0.7786 GB, free: 70.42 MB / 478.3 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02314/1.652, allocations: 16.62 MB / 0.7948 GB, free: 67.43 MB / 478.3 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.435e-05/1.652, allocations: 76.91 kB / 0.7949 GB, free: 67.39 MB / 478.3 MB Notification: Performance of pre-optimization done (n=427): time 5.461e-06/1.652, allocations: 3.625 kB / 0.7949 GB, free: 67.39 MB / 478.3 MB Notification: Performance of matching and sorting (n=427): time 0.02991/1.682, allocations: 13.22 MB / 0.8078 GB, free: 66.66 MB / 478.3 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.586e-05/1.682, allocations: 120.8 kB / 0.8079 GB, free: 66.56 MB / 478.3 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01261/1.694, allocations: 7.486 MB / 0.8152 GB, free: 63.54 MB / 478.3 MB Notification: Performance of collectPreVariables (initialization): time 0.0006227/1.695, allocations: 92.61 kB / 0.8153 GB, free: 63.46 MB / 478.3 MB Notification: Performance of collectInitialEqns (initialization): time 0.003355/1.698, allocations: 8.533 MB / 0.8237 GB, free: 56.03 MB / 478.3 MB Notification: Performance of collectInitialBindings (initialization): time 0.001293/1.7, allocations: 1.558 MB / 0.8252 GB, free: 54.71 MB / 478.3 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002647/1.702, allocations: 2.273 MB / 0.8274 GB, free: 53.42 MB / 478.3 MB Notification: Performance of setup shared object (initialization): time 3.46e-05/1.702, allocations: 302 kB / 0.8277 GB, free: 53.12 MB / 478.3 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005569/1.708, allocations: 4.707 MB / 0.8323 GB, free: 50.62 MB / 478.3 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007164/1.715, allocations: 10.4 MB / 0.8424 GB, free: 40.23 MB / 478.3 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01496/1.73, allocations: 15.99 MB / 0.8581 GB, free: 23.04 MB / 478.3 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001522/1.73, allocations: 56 kB / 0.8581 GB, free: 22.99 MB / 478.3 MB Notification: Performance of matching and sorting (n=1399) (initialization): time 0.02143/1.752, allocations: 16.01 MB / 0.8737 GB, free: 6.961 MB / 478.3 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001061/1.752, allocations: 88 kB / 0.8738 GB, free: 6.875 MB / 478.3 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002598/1.752, allocations: 196 kB / 0.874 GB, free: 6.684 MB / 478.3 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00521/1.757, allocations: 1.707 MB / 0.8757 GB, free: 4.969 MB / 478.3 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008263/1.766, allocations: 2.499 MB / 0.8781 GB, free: 2.465 MB / 478.3 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01587/1.781, allocations: 11.54 MB / 0.8894 GB, free: 6.789 MB / 494.3 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009805/1.791, allocations: 1.548 MB / 0.8909 GB, free: 5.227 MB / 494.3 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001716/1.793, allocations: 0.6015 MB / 0.8915 GB, free: 4.625 MB / 494.3 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 898 * 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 (1312): * Single equations (assignments): 1309 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,80,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.2051/1.998, allocations: 7.396 MB / 0.8987 GB, free: 146.8 MB / 494.3 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002037/2, allocations: 0.6248 MB / 0.8993 GB, free: 146.8 MB / 494.3 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01841/2.019, allocations: 8.101 MB / 0.9072 GB, free: 145.6 MB / 494.3 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008962/2.028, allocations: 6.481 MB / 0.9136 GB, free: 143.1 MB / 494.3 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.213e-05/2.028, allocations: 11.81 kB / 0.9136 GB, free: 143.1 MB / 494.3 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.858e-05/2.028, allocations: 21.66 kB / 0.9136 GB, free: 143.1 MB / 494.3 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03921/2.067, allocations: 20.8 MB / 0.9339 GB, free: 135.3 MB / 494.3 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-05/2.067, allocations: 0 / 0.9339 GB, free: 135.3 MB / 494.3 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003195/2.07, allocations: 0.7636 MB / 0.9347 GB, free: 135.2 MB / 494.3 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004994/2.075, allocations: 1.456 MB / 0.9361 GB, free: 134.9 MB / 494.3 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005004/2.076, allocations: 92.19 kB / 0.9362 GB, free: 134.9 MB / 494.3 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01924/2.095, allocations: 11.16 MB / 0.9471 GB, free: 129 MB / 494.3 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/2.095, allocations: 10.02 kB / 0.9471 GB, free: 129 MB / 494.3 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02156/2.117, allocations: 11.69 MB / 0.9585 GB, free: 123.8 MB / 494.3 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002727/2.119, allocations: 1.31 MB / 0.9598 GB, free: 122.6 MB / 494.3 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001033/2.121, allocations: 83 kB / 0.9599 GB, free: 122.5 MB / 494.3 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002722/2.123, allocations: 300.2 kB / 0.9601 GB, free: 122.3 MB / 494.3 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006715/2.124, allocations: 296.7 kB / 0.9604 GB, free: 122.1 MB / 494.3 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002512/2.124, allocations: 127.7 kB / 0.9605 GB, free: 122 MB / 494.3 MB Notification: Performance of sorting global known variables: time 0.007081/2.131, allocations: 4.928 MB / 0.9654 GB, free: 117.8 MB / 494.3 MB Notification: Performance of sort global known variables: time 4.01e-07/2.131, allocations: 0 / 0.9654 GB, free: 117.8 MB / 494.3 MB Notification: Performance of remove unused functions: time 0.01078/2.142, allocations: 4.186 MB / 0.9694 GB, free: 113.6 MB / 494.3 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (source.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 (381): * Single equations (assignments): 378 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(6,80,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01318/2.155, allocations: 12.45 MB / 0.9816 GB, free: 101.1 MB / 494.3 MB Notification: Performance of simCode: created initialization part: time 0.03276/2.188, allocations: 19.99 MB / 1.001 GB, free: 81.19 MB / 494.3 MB Notification: Performance of simCode: created event and clocks part: time 6.062e-06/2.188, allocations: 0 / 1.001 GB, free: 81.19 MB / 494.3 MB Notification: Performance of simCode: created simulation system equations: time 0.004764/2.193, allocations: 3.949 MB / 1.005 GB, free: 77.23 MB / 494.3 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006816/2.2, allocations: 1.536 MB / 1.006 GB, free: 75.7 MB / 494.3 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3125/2.512, allocations: 120.1 MB / 1.124 GB, free: 127.9 MB / 0.4983 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01808/2.53, allocations: 11.62 MB / 1.135 GB, free: 123.7 MB / 0.4983 GB Notification: Performance of simCode: alias equations: time 0.01191/2.542, allocations: 3.975 MB / 1.139 GB, free: 122 MB / 0.4983 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008204/2.551, allocations: 6.117 MB / 1.145 GB, free: 116.3 MB / 0.4983 GB Notification: Performance of SimCode: time 1.052e-06/2.551, allocations: 0 / 1.145 GB, free: 116.3 MB / 0.4983 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9269/3.478, allocations: 207 MB / 1.347 GB, free: 93.66 MB / 0.4983 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.44/17.92, allocations: 1.078 kB / 1.347 GB, free: 93.66 MB / 0.4983 GB (rm -f Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbench.fmu > Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/QuasiStationary/Machines/Examples/TransformerTestbench/TransformerTestbench.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches