Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00171/0.00171, allocations: 118.9 kB / 17.79 MB, free: 5.285 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002163/0.002163, allocations: 199.3 kB / 20.74 MB, free: 2.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.485/1.485, allocations: 230.6 MB / 254.1 MB, free: 15.1 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001562, allocations: 47.94 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1151, allocations: 53.33 MB / 426.3 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.255/0.3702, allocations: 28.72 MB / 455 MB, free: 9.207 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02044/0.3906, allocations: 7.211 MB / 462.3 MB, free: 4.09 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008413/0.399, allocations: 310.6 kB / 462.6 MB, free: 3.992 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0318/0.4308, allocations: 13.23 MB / 475.8 MB, free: 11.04 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01378/0.4446, allocations: 2.565 MB / 478.4 MB, free: 8.949 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007892/0.4525, allocations: 2.031 MB / 480.4 MB, free: 7.352 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0265/0.479, allocations: 18.29 MB / 498.7 MB, free: 8.605 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07247/0.5514, allocations: 34.25 MB / 0.5204 GB, free: 6.141 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01984/0.5713, allocations: 10.12 MB / 0.5303 GB, free: 12.01 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02067/0.592, allocations: 11.12 MB / 0.5412 GB, free: 0.8555 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009749/0.6017, allocations: 2.922 MB / 0.544 GB, free: 13.93 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01264/0.6143, allocations: 3.199 MB / 0.5472 GB, free: 10.73 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01133/0.6257, allocations: 5.491 MB / 0.5525 GB, free: 5.23 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02201/0.6477, allocations: 10.83 MB / 0.5631 GB, free: 10.36 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05701/0.7047, allocations: 39.1 MB / 0.6013 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.003e-05/0.7047, allocations: 0 / 0.6013 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.944e-06/0.7047, allocations: 0 / 0.6013 GB, free: 3.141 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.001172/0.7059, allocations: 0 / 0.6013 GB, free: 3.141 MB / 0.4981 GB 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.49/1.196, allocations: 22.31 MB / 0.623 GB, free: 135.9 MB / 0.5138 GB Notification: Performance of prepare preOptimizeDAE: time 4.86e-05/1.196, allocations: 13.03 kB / 0.6231 GB, free: 135.9 MB / 0.5138 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0126/1.209, allocations: 2.959 MB / 0.626 GB, free: 134.5 MB / 0.5138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05027/1.259, allocations: 8.247 MB / 0.634 GB, free: 133.1 MB / 0.5138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02712/1.286, allocations: 11.69 MB / 0.6454 GB, free: 127.7 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001894/1.288, allocations: 1.338 MB / 0.6467 GB, free: 127.1 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009538/1.297, allocations: 1.762 MB / 0.6484 GB, free: 126.6 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07174/1.369, allocations: 28.78 MB / 0.6765 GB, free: 103.3 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007464/1.37, allocations: 19.88 kB / 0.6766 GB, free: 103.3 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006636/1.376, allocations: 0.7297 MB / 0.6773 GB, free: 102.6 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006831/1.377, allocations: 0.8454 MB / 0.6781 GB, free: 101.8 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05069/1.428, allocations: 24.83 MB / 0.7024 GB, free: 76.89 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1337/1.562, allocations: 87.53 MB / 0.7878 GB, free: 4.605 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03548/1.597, allocations: 34.6 MB / 0.8216 GB, free: 14.71 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01014/1.607, allocations: 5.047 MB / 0.8265 GB, free: 9.652 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007292/1.608, allocations: 326.5 kB / 0.8269 GB, free: 9.293 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.364e-05/1.608, allocations: 95.08 kB / 0.827 GB, free: 9.188 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=577): time 7.193e-06/1.608, allocations: 0 / 0.827 GB, free: 9.188 MB / 0.5763 GB Notification: Performance of matching and sorting (n=577): time 0.03953/1.648, allocations: 14.77 MB / 0.8414 GB, free: 10.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001623/1.648, allocations: 141.6 kB / 0.8415 GB, free: 10.14 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01266/1.66, allocations: 6.421 MB / 0.8478 GB, free: 3.852 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.00116/1.662, allocations: 117.7 kB / 0.8479 GB, free: 3.73 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.4264/2.088, allocations: 7.902 MB / 0.8556 GB, free: 196.8 MB / 0.592 GB Notification: Performance of collectInitialBindings (initialization): time 0.002944/2.091, allocations: 2.107 MB / 0.8577 GB, free: 195.8 MB / 0.592 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004172/2.095, allocations: 2.114 MB / 0.8597 GB, free: 195.6 MB / 0.592 GB Notification: Performance of setup shared object (initialization): time 4.789e-05/2.095, allocations: 303.7 kB / 0.86 GB, free: 195.3 MB / 0.592 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008222/2.103, allocations: 4.744 MB / 0.8647 GB, free: 195 MB / 0.592 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01145/2.115, allocations: 9.473 MB / 0.8739 GB, free: 187.1 MB / 0.592 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01923/2.134, allocations: 15.33 MB / 0.8889 GB, free: 176 MB / 0.592 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002931/2.134, allocations: 46.06 kB / 0.8889 GB, free: 176 MB / 0.592 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.02928/2.164, allocations: 15.41 MB / 0.904 GB, free: 169.8 MB / 0.592 GB Notification: Performance of prepare postOptimizeDAE: time 0.000155/2.164, allocations: 74.28 kB / 0.904 GB, free: 169.8 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00028/2.164, allocations: 163.2 kB / 0.9042 GB, free: 169.8 MB / 0.592 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005068/2.169, allocations: 1.664 MB / 0.9058 GB, free: 169.5 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007895/2.177, allocations: 2.357 MB / 0.9081 GB, free: 169.2 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01355/2.191, allocations: 11.61 MB / 0.9195 GB, free: 163 MB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007937/2.198, allocations: 1.375 MB / 0.9208 GB, free: 162.5 MB / 0.592 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00185/2.2, allocations: 0.5333 MB / 0.9213 GB, free: 162.1 MB / 0.592 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.01094/2.211, allocations: 7.144 MB / 0.9283 GB, free: 156.2 MB / 0.592 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001333/2.213, allocations: 0.6442 MB / 0.9289 GB, free: 155.5 MB / 0.592 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01346/2.226, allocations: 10.07 MB / 0.9388 GB, free: 147.1 MB / 0.592 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009627/2.236, allocations: 7.767 MB / 0.9464 GB, free: 139.7 MB / 0.592 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.217e-05/2.236, allocations: 15.94 kB / 0.9464 GB, free: 139.7 MB / 0.592 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.821e-05/2.236, allocations: 31.83 kB / 0.9464 GB, free: 139.7 MB / 0.592 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04321/2.279, allocations: 25.7 MB / 0.9715 GB, free: 113.8 MB / 0.592 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.441e-05/2.279, allocations: 8.938 kB / 0.9715 GB, free: 113.8 MB / 0.592 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003873/2.283, allocations: 1.021 MB / 0.9725 GB, free: 112.8 MB / 0.592 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004646/2.287, allocations: 1.465 MB / 0.9739 GB, free: 111.3 MB / 0.592 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007772/2.288, allocations: 132 kB / 0.9741 GB, free: 111.2 MB / 0.592 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01179/2.3, allocations: 11.16 MB / 0.985 GB, free: 99.93 MB / 0.592 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.705e-06/2.3, allocations: 13.84 kB / 0.985 GB, free: 99.92 MB / 0.592 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01838/2.318, allocations: 14.13 MB / 0.9988 GB, free: 85.43 MB / 0.592 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003378/2.322, allocations: 1.483 MB / 1 GB, free: 83.93 MB / 0.592 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001321/2.323, allocations: 108 kB / 1 GB, free: 83.82 MB / 0.592 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003546/2.327, allocations: 319.7 kB / 1.001 GB, free: 83.51 MB / 0.592 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008242/2.327, allocations: 408.4 kB / 1.001 GB, free: 83.11 MB / 0.592 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00032/2.328, allocations: 172 kB / 1.001 GB, free: 82.94 MB / 0.592 GB Notification: Performance of sorting global known variables: time 0.006076/2.334, allocations: 4.305 MB / 1.005 GB, free: 78.66 MB / 0.592 GB Notification: Performance of sort global known variables: time 4.51e-07/2.334, allocations: 0 / 1.005 GB, free: 78.66 MB / 0.592 GB Notification: Performance of remove unused functions: time 0.01179/2.346, allocations: 4.091 MB / 1.009 GB, free: 74.56 MB / 0.592 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.01772/2.363, allocations: 14.93 MB / 1.024 GB, free: 59.28 MB / 0.592 GB Notification: Performance of simCode: created initialization part: time 0.01574/2.379, allocations: 10.95 MB / 1.035 GB, free: 48.29 MB / 0.592 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-05/2.379, allocations: 7.5 kB / 1.035 GB, free: 48.28 MB / 0.592 GB Notification: Performance of simCode: created simulation system equations: time 0.006747/2.386, allocations: 4.35 MB / 1.039 GB, free: 43.92 MB / 0.592 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008505/2.394, allocations: 1.556 MB / 1.04 GB, free: 42.42 MB / 0.592 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4336/2.828, allocations: 94.47 MB / 1.133 GB, free: 150.5 MB / 0.592 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01989/2.848, allocations: 11.26 MB / 1.144 GB, free: 143.5 MB / 0.592 GB Notification: Performance of simCode: alias equations: time 0.009097/2.857, allocations: 3.762 MB / 1.147 GB, free: 139.8 MB / 0.592 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009784/2.867, allocations: 5.954 MB / 1.153 GB, free: 133.8 MB / 0.592 GB Notification: Performance of SimCode: time 1.723e-06/2.867, allocations: 4 kB / 1.153 GB, free: 133.8 MB / 0.592 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5285/3.395, allocations: 208.8 MB / 1.357 GB, free: 166.3 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.03/31.42, allocations: 10.05 kB / 1.357 GB, free: 166.3 MB / 0.6077 GB " [Timeout remaining time 628] (rm -f Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench.fmu > Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/QuasiStatic/Machines/Examples/TransformerTestbench/TransformerTestbench.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable source.plug_p.reference.gamma in file Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.csv. Warning: Get data of variable source.plug_p.reference.gamma from file Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 34.126357444998575]