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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001301/0.001301, allocations: 120.1 kB / 17.78 MB, free: 5.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 198.8 kB / 20.73 MB, free: 2.289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002326/0.002326, allocations: 51.92 kB / 365.7 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1237/0.126, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.2662/0.3922, allocations: 28.71 MB / 446.5 MB, free: 6.828 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01701/0.4092, allocations: 7.141 MB / 453.6 MB, free: 6.754 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007446/0.4167, allocations: 313.4 kB / 453.9 MB, free: 6.754 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02794/0.4446, allocations: 13.21 MB / 467.2 MB, free: 4.414 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01204/0.4567, allocations: 2.721 MB / 469.9 MB, free: 3.191 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006496/0.4632, allocations: 1.854 MB / 471.7 MB, free: 2.234 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02476/0.4879, allocations: 18.12 MB / 489.8 MB, free: 8.348 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06631/0.5542, allocations: 34.26 MB / 0.5118 GB, free: 10.04 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02097/0.5752, allocations: 10.12 MB / 0.5217 GB, free: 68 kB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01983/0.595, allocations: 11.11 MB / 0.5326 GB, free: 5.207 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007727/0.6028, allocations: 2.918 MB / 0.5354 GB, free: 2.289 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01265/0.6154, allocations: 3.17 MB / 0.5385 GB, free: 15.12 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009783/0.6252, allocations: 5.492 MB / 0.5439 GB, free: 9.688 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02125/0.6464, allocations: 10.82 MB / 0.5544 GB, free: 14.89 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05122/0.6977, allocations: 39.08 MB / 0.5926 GB, free: 8.352 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.6977, allocations: 0 / 0.5926 GB, free: 8.352 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.6977, allocations: 0 / 0.5926 GB, free: 8.352 MB / 494.1 MB Notification: Performance of Transformations before backend: time 0.001166/0.6988, allocations: 0 / 0.5926 GB, free: 8.352 MB / 494.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.07487/0.7737, allocations: 22.31 MB / 0.6144 GB, free: 2.043 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.405e-05/0.7738, allocations: 8.031 kB / 0.6144 GB, free: 2.035 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01205/0.7858, allocations: 2.96 MB / 0.6173 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04671/0.8325, allocations: 8.413 MB / 0.6255 GB, free: 6.73 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4627/1.295, allocations: 11.66 MB / 0.6369 GB, free: 132.7 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001642/1.297, allocations: 1.342 MB / 0.6382 GB, free: 132.5 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00788/1.305, allocations: 1.759 MB / 0.6399 GB, free: 131.9 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07907/1.384, allocations: 28.72 MB / 0.668 GB, free: 120.9 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001046/1.385, allocations: 22.94 kB / 0.668 GB, free: 120.9 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006553/1.391, allocations: 0.7259 MB / 0.6687 GB, free: 120.3 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007188/1.392, allocations: 0.854 MB / 0.6695 GB, free: 120.3 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04627/1.438, allocations: 24.79 MB / 0.6937 GB, free: 104.3 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1232/1.562, allocations: 87.12 MB / 0.7788 GB, free: 16.94 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0285/1.59, allocations: 34.55 MB / 0.8126 GB, free: 11.1 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01024/1.6, allocations: 5.032 MB / 0.8175 GB, free: 6.062 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000747/1.601, allocations: 212.2 kB / 0.8177 GB, free: 5.852 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.51e-05/1.601, allocations: 91.08 kB / 0.8178 GB, free: 5.75 MB / 0.545 GB Notification: Performance of pre-optimization done (n=577): time 7.314e-06/1.601, allocations: 4 kB / 0.8178 GB, free: 5.746 MB / 0.545 GB Notification: Performance of matching and sorting (n=577): time 0.03825/1.639, allocations: 14.73 MB / 0.8321 GB, free: 6.906 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001283/1.64, allocations: 141.6 kB / 0.8323 GB, free: 6.746 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01141/1.651, allocations: 6.421 MB / 0.8386 GB, free: 468 kB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001035/1.652, allocations: 117.7 kB / 0.8387 GB, free: 344 kB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.006642/1.659, allocations: 7.901 MB / 0.8464 GB, free: 9.262 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.003036/1.662, allocations: 2.113 MB / 0.8484 GB, free: 7.176 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003737/1.665, allocations: 2.1 MB / 0.8505 GB, free: 5.066 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001311/1.666, allocations: 313 kB / 0.8508 GB, free: 4.758 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007576/1.673, allocations: 4.74 MB / 0.8554 GB, free: 12 kB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.436/2.109, allocations: 9.454 MB / 0.8647 GB, free: 172.2 MB / 0.5764 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02011/2.129, allocations: 15.31 MB / 0.8796 GB, free: 162.9 MB / 0.5764 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003438/2.13, allocations: 45.62 kB / 0.8796 GB, free: 162.9 MB / 0.5764 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.0278/2.157, allocations: 15.37 MB / 0.8947 GB, free: 157.1 MB / 0.5764 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001576/2.158, allocations: 71.28 kB / 0.8947 GB, free: 157.1 MB / 0.5764 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002372/2.158, allocations: 158.2 kB / 0.8949 GB, free: 157.1 MB / 0.5764 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004926/2.163, allocations: 1.663 MB / 0.8965 GB, free: 156.7 MB / 0.5764 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007326/2.17, allocations: 2.352 MB / 0.8988 GB, free: 156.5 MB / 0.5764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01254/2.183, allocations: 11.62 MB / 0.9101 GB, free: 150.4 MB / 0.5764 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007885/2.191, allocations: 1.378 MB / 0.9115 GB, free: 150.2 MB / 0.5764 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001662/2.192, allocations: 0.5283 MB / 0.912 GB, free: 150.2 MB / 0.5764 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.01138/2.204, allocations: 7.148 MB / 0.919 GB, free: 146.9 MB / 0.5764 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00129/2.205, allocations: 0.6436 MB / 0.9196 GB, free: 146.6 MB / 0.5764 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01436/2.219, allocations: 10.07 MB / 0.9294 GB, free: 142.5 MB / 0.5764 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009592/2.229, allocations: 7.729 MB / 0.937 GB, free: 138.6 MB / 0.5764 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.138e-05/2.229, allocations: 16 kB / 0.937 GB, free: 138.6 MB / 0.5764 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.345e-05/2.229, allocations: 29.34 kB / 0.937 GB, free: 138.6 MB / 0.5764 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03578/2.265, allocations: 25.41 MB / 0.9619 GB, free: 116 MB / 0.5764 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-05/2.265, allocations: 9 kB / 0.9619 GB, free: 116 MB / 0.5764 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003593/2.268, allocations: 1.01 MB / 0.9629 GB, free: 114.9 MB / 0.5764 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0045/2.273, allocations: 1.466 MB / 0.9643 GB, free: 113.5 MB / 0.5764 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004216/2.273, allocations: 124 kB / 0.9644 GB, free: 113.4 MB / 0.5764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01132/2.285, allocations: 11.17 MB / 0.9753 GB, free: 102.1 MB / 0.5764 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/2.285, allocations: 11.94 kB / 0.9753 GB, free: 102.1 MB / 0.5764 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01547/2.3, allocations: 14.09 MB / 0.9891 GB, free: 87.66 MB / 0.5764 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002885/2.303, allocations: 1.463 MB / 0.9905 GB, free: 86.25 MB / 0.5764 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008156/2.304, allocations: 122.8 kB / 0.9906 GB, free: 86.14 MB / 0.5764 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002677/2.306, allocations: 319.7 kB / 0.9909 GB, free: 85.82 MB / 0.5764 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006967/2.307, allocations: 400.4 kB / 0.9913 GB, free: 85.43 MB / 0.5764 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002882/2.307, allocations: 168 kB / 0.9915 GB, free: 85.27 MB / 0.5764 GB Notification: Performance of sorting global known variables: time 0.005143/2.312, allocations: 4.305 MB / 0.9957 GB, free: 80.99 MB / 0.5764 GB Notification: Performance of sort global known variables: time 8.1e-08/2.312, allocations: 2.297 kB / 0.9957 GB, free: 80.99 MB / 0.5764 GB Notification: Performance of remove unused functions: time 0.01037/2.323, allocations: 4.089 MB / 0.9997 GB, free: 77.38 MB / 0.5764 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.0159/2.339, allocations: 14.89 MB / 1.014 GB, free: 62.15 MB / 0.5764 GB Notification: Performance of simCode: created initialization part: time 0.01397/2.353, allocations: 10.92 MB / 1.025 GB, free: 51.18 MB / 0.5764 GB Notification: Performance of simCode: created event and clocks part: time 1.237e-05/2.353, allocations: 4 kB / 1.025 GB, free: 51.18 MB / 0.5764 GB Notification: Performance of simCode: created simulation system equations: time 0.005683/2.358, allocations: 4.34 MB / 1.029 GB, free: 46.82 MB / 0.5764 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007103/2.366, allocations: 1.566 MB / 1.031 GB, free: 45.32 MB / 0.5764 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3792/2.745, allocations: 94.55 MB / 1.123 GB, free: 148.9 MB / 0.5764 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01618/2.761, allocations: 11.27 MB / 1.134 GB, free: 143.2 MB / 0.5764 GB Notification: Performance of simCode: alias equations: time 0.009103/2.77, allocations: 3.763 MB / 1.138 GB, free: 141.6 MB / 0.5764 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01078/2.781, allocations: 5.92 MB / 1.143 GB, free: 136.2 MB / 0.5764 GB Notification: Performance of SimCode: time 2.114e-06/2.781, allocations: 0 / 1.143 GB, free: 136.2 MB / 0.5764 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4896/3.27, allocations: 208.2 MB / 1.347 GB, free: 156.6 MB / 0.592 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.32/29.59, allocations: 5.578 kB / 1.347 GB, free: 156.6 MB / 0.592 GB " [Timeout remaining time 630] (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) [Timeout 52.5] 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) [Timeout 660] "Error: Could not read variable source.plug_p.reference.gamma in file Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.csv. Warning: Get data of variable source.plug_p.reference.gamma from file Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 32.257817797362804]