Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.QuasiStatic.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 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.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_QuasiStatic_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.001745/0.001744, allocations: 110.3 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.002188/0.002188, allocations: 191.3 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.996/1.996, allocations: 222.9 MB / 241.6 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002065/0.002065, allocations: 50.58 kB / 300.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1619/0.1641, allocations: 49.45 MB / 350.2 MB, free: 4.34 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.3493/0.5134, allocations: 28.59 MB / 378.8 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02582/0.5393, allocations: 7.129 MB / 385.9 MB, free: 7.234 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01309/0.5524, allocations: 259.9 kB / 386.1 MB, free: 7.188 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.05051/0.603, allocations: 13.11 MB / 399.3 MB, free: 15.99 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02194/0.625, allocations: 2.692 MB / 401.9 MB, free: 13.81 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01173/0.6368, allocations: 1.83 MB / 403.8 MB, free: 12.36 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.04494/0.6817, allocations: 17.96 MB / 421.7 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1421/0.8239, allocations: 44.64 MB / 466.4 MB, free: 1.223 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02911/0.8531, allocations: 9.902 MB / 476.3 MB, free: 7.309 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03436/0.8875, allocations: 11.07 MB / 487.3 MB, free: 12.21 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01495/0.9025, allocations: 2.918 MB / 490.3 MB, free: 9.289 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0196/0.9222, allocations: 3.172 MB / 493.4 MB, free: 6.117 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01832/0.9405, allocations: 5.487 MB / 498.9 MB, free: 0.6172 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0395/0.9801, allocations: 10.81 MB / 0.4978 GB, free: 5.762 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.6774/1.658, allocations: 38.77 MB / 0.5356 GB, free: 78.86 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.608e-06/1.658, allocations: 0 / 0.5356 GB, free: 78.86 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.146e-06/1.658, allocations: 0 / 0.5356 GB, free: 78.86 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.001286/1.659, allocations: 1.5 kB / 0.5356 GB, free: 78.86 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: 4885 * Number of variables: 4885 Notification: Performance of Generate backend data structure: time 0.1271/1.786, allocations: 21.93 MB / 0.5571 GB, free: 67.98 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.461e-05/1.786, allocations: 7.469 kB / 0.5571 GB, free: 67.98 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.02312/1.809, allocations: 2.963 MB / 0.56 GB, free: 66.16 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1032/1.913, allocations: 8.331 MB / 0.5681 GB, free: 61.84 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04313/1.956, allocations: 11.27 MB / 0.5791 GB, free: 51.1 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00219/1.958, allocations: 1.336 MB / 0.5804 GB, free: 49.77 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01317/1.971, allocations: 1.765 MB / 0.5821 GB, free: 48.02 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1231/2.094, allocations: 28.73 MB / 0.6102 GB, free: 19.25 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001039/2.095, allocations: 23.45 kB / 0.6102 GB, free: 19.23 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01205/2.108, allocations: 0.7263 MB / 0.6109 GB, free: 18.52 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001124/2.109, allocations: 0.8454 MB / 0.6117 GB, free: 17.67 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08672/2.195, allocations: 24.78 MB / 0.6359 GB, free: 8.871 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5892/2.785, allocations: 88.01 MB / 0.7219 GB, free: 136.4 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04009/2.825, allocations: 35.12 MB / 0.7562 GB, free: 108.9 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01474/2.84, allocations: 5.296 MB / 0.7614 GB, free: 108.8 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009008/2.841, allocations: 209.5 kB / 0.7616 GB, free: 108.7 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001499/2.841, allocations: 93.3 kB / 0.7616 GB, free: 108.7 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=577): time 2.249e-05/2.841, allocations: 0 / 0.7616 GB, free: 108.7 MB / 0.4982 GB Notification: Performance of matching and sorting (n=577): time 0.06074/2.902, allocations: 14.73 MB / 0.776 GB, free: 107.9 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001307/2.902, allocations: 138.4 kB / 0.7762 GB, free: 107.8 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01974/2.922, allocations: 6.417 MB / 0.7824 GB, free: 107.4 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.001234/2.923, allocations: 116.8 kB / 0.7825 GB, free: 107.4 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.006294/2.929, allocations: 7.62 MB / 0.79 GB, free: 103 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.003605/2.933, allocations: 2.017 MB / 0.7919 GB, free: 101.8 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006648/2.94, allocations: 2.087 MB / 0.794 GB, free: 101.1 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 5.709e-05/2.94, allocations: 301.1 kB / 0.7943 GB, free: 100.8 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01141/2.951, allocations: 4.735 MB / 0.7989 GB, free: 99.09 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01483/2.966, allocations: 9.469 MB / 0.8081 GB, free: 90.41 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02692/2.993, allocations: 15.3 MB / 0.8231 GB, free: 75.42 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002547/2.993, allocations: 48 kB / 0.8231 GB, free: 75.38 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.04606/3.039, allocations: 15.37 MB / 0.8381 GB, free: 59.92 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003254/3.04, allocations: 72 kB / 0.8382 GB, free: 59.85 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003538/3.04, allocations: 167.2 kB / 0.8384 GB, free: 59.69 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00895/3.049, allocations: 1.668 MB / 0.84 GB, free: 58.01 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01507/3.064, allocations: 2.351 MB / 0.8423 GB, free: 55.66 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02461/3.089, allocations: 11.6 MB / 0.8536 GB, free: 43.93 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01508/3.104, allocations: 1.351 MB / 0.8549 GB, free: 42.56 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002861/3.107, allocations: 0.5273 MB / 0.8555 GB, free: 42.04 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 728 * 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 (1243): * Single equations (assignments): 1240 * 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.02042/3.127, allocations: 7.145 MB / 0.8624 GB, free: 34.87 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002745/3.13, allocations: 0.6056 MB / 0.863 GB, free: 34.26 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02865/3.159, allocations: 10.12 MB / 0.8729 GB, free: 24.03 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01973/3.178, allocations: 7.773 MB / 0.8805 GB, free: 16.17 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.194e-05/3.179, allocations: 15.98 kB / 0.8805 GB, free: 16.16 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001231/3.179, allocations: 27.89 kB / 0.8805 GB, free: 16.13 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3725/3.551, allocations: 25.98 MB / 0.9059 GB, free: 155.9 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.308e-05/3.551, allocations: 11.08 kB / 0.9059 GB, free: 155.9 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008126/3.559, allocations: 1.008 MB / 0.9069 GB, free: 155.8 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009257/3.569, allocations: 1.473 MB / 0.9083 GB, free: 155.8 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001488/3.57, allocations: 129.1 kB / 0.9085 GB, free: 155.8 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02466/3.595, allocations: 11.15 MB / 0.9194 GB, free: 151.5 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.371e-05/3.595, allocations: 15.67 kB / 0.9194 GB, free: 151.5 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03456/3.63, allocations: 14.1 MB / 0.9331 GB, free: 145.3 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006113/3.636, allocations: 1.437 MB / 0.9345 GB, free: 144.5 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003179/3.639, allocations: 110.6 kB / 0.9346 GB, free: 144.4 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007725/3.647, allocations: 320.1 kB / 0.935 GB, free: 144.4 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001903/3.649, allocations: 406.4 kB / 0.9353 GB, free: 144.3 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001153/3.65, allocations: 163.6 kB / 0.9355 GB, free: 144.3 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.01423/3.664, allocations: 4.31 MB / 0.9397 GB, free: 142.8 MB / 0.4982 GB Notification: Performance of sort global known variables: time 9.31e-07/3.664, allocations: 0 / 0.9397 GB, free: 142.8 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.02116/3.685, allocations: 4.04 MB / 0.9437 GB, free: 141.3 MB / 0.4982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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 (528): * Single equations (assignments): 525 * 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.03591/3.721, allocations: 14.89 MB / 0.9582 GB, free: 128 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.0971/3.818, allocations: 26.53 MB / 0.9841 GB, free: 102.9 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.766e-05/3.818, allocations: 4.062 kB / 0.9841 GB, free: 102.9 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.0126/3.831, allocations: 4.649 MB / 0.9886 GB, free: 98.89 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01506/3.846, allocations: 1.565 MB / 0.9902 GB, free: 97.61 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5063/4.353, allocations: 113.4 MB / 1.101 GB, free: 181.5 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03148/4.384, allocations: 11.26 MB / 1.112 GB, free: 180.4 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.02/4.404, allocations: 3.766 MB / 1.116 GB, free: 180.1 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01632/4.42, allocations: 5.921 MB / 1.121 GB, free: 175.2 MB / 0.5138 GB Notification: Performance of SimCode: time 1.333e-06/4.421, allocations: 0 / 1.121 GB, free: 175.2 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7278/5.148, allocations: 208.3 MB / 1.325 GB, free: 162.7 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.94/26.08, allocations: 17.61 kB / 1.325 GB, free: 162.7 MB / 0.5138 GB (rm -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.QuasiStatic.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_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.fmu > Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Machines/Examples/TransformerTestbench/TransformerTestbench.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches