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.001255/0.001255, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001337/0.001337, allocations: 214.9 kB / 24.52 MB, free: 3.941 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.38/1.38, allocations: 230.6 MB / 258.3 MB, free: 7.961 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001408/0.001408, allocations: 55.86 kB / 378.5 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2551, allocations: 53.35 MB / 431.9 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.02771/0.2828, allocations: 24.5 MB / 456.4 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01472/0.2975, allocations: 6.997 MB / 463.4 MB, free: 7.051 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005242/0.3028, allocations: 318.3 kB / 463.7 MB, free: 6.738 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02845/0.3312, allocations: 12.2 MB / 475.9 MB, free: 10.51 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01056/0.3418, allocations: 2.629 MB / 478.5 MB, free: 7.871 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00661/0.3484, allocations: 2.049 MB / 480.5 MB, free: 5.84 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02324/0.3716, allocations: 18.53 MB / 499.1 MB, free: 3.242 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05605/0.4277, allocations: 28.4 MB / 0.5151 GB, free: 6.617 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01712/0.4448, allocations: 10.15 MB / 0.525 GB, free: 12.45 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01888/0.4637, allocations: 11.14 MB / 0.5359 GB, free: 1.273 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.4157/0.8794, allocations: 2.917 MB / 0.5388 GB, free: 39.4 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009765/0.8892, allocations: 3.199 MB / 0.5419 GB, free: 39.4 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009521/0.8987, allocations: 5.485 MB / 0.5472 GB, free: 39.4 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01695/0.9157, allocations: 8.377 MB / 0.5554 GB, free: 38.53 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0326/0.9483, allocations: 39.27 MB / 0.5938 GB, free: 19.69 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.154e-06/0.9483, allocations: 2 kB / 0.5938 GB, free: 19.69 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.9483, allocations: 1.125 kB / 0.5938 GB, free: 19.69 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001073/0.9493, allocations: 0 / 0.5938 GB, free: 19.69 MB / 446.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.06281/1.012, allocations: 22.24 MB / 0.6155 GB, free: 2.629 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/1.012, allocations: 12.03 kB / 0.6155 GB, free: 2.617 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0004924/1.013, allocations: 0.5299 MB / 0.616 GB, free: 2.082 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01184/1.025, allocations: 2.968 MB / 0.6189 GB, free: 15.11 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04652/1.071, allocations: 8.238 MB / 0.627 GB, free: 6.938 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02641/1.097, allocations: 11.9 MB / 0.6386 GB, free: 11.44 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00157/1.099, allocations: 1.343 MB / 0.6399 GB, free: 10.11 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006774/1.106, allocations: 1.757 MB / 0.6416 GB, free: 8.359 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07498/1.181, allocations: 29.04 MB / 0.67 GB, free: 11.22 MB / 0.4982 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008168/1.182, allocations: 27.83 kB / 0.67 GB, free: 11.2 MB / 0.4982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005342/1.187, allocations: 0.7286 MB / 0.6707 GB, free: 10.48 MB / 0.4982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000972/1.188, allocations: 0.8415 MB / 0.6715 GB, free: 9.633 MB / 0.4982 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05665/1.245, allocations: 24.85 MB / 0.6958 GB, free: 0.7617 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4013/1.646, allocations: 78.89 MB / 0.7728 GB, free: 140.3 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01675/1.663, allocations: 12.79 MB / 0.7853 GB, free: 139.8 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006649/1.669, allocations: 5.053 MB / 0.7903 GB, free: 139.7 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000394/1.67, allocations: 147.3 kB / 0.7904 GB, free: 139.7 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.179e-05/1.67, allocations: 94.45 kB / 0.7905 GB, free: 139.7 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=585): time 1.041e-05/1.67, allocations: 0 / 0.7905 GB, free: 139.7 MB / 0.5607 GB Notification: Performance of matching and sorting (n=681): time 0.06735/1.737, allocations: 34.13 MB / 0.8238 GB, free: 125.3 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.547e-05/1.737, allocations: 146.4 kB / 0.824 GB, free: 125.1 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007864/1.745, allocations: 6.43 MB / 0.8302 GB, free: 118.7 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0009852/1.746, allocations: 133.6 kB / 0.8304 GB, free: 118.6 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.003137/1.749, allocations: 7.903 MB / 0.8381 GB, free: 110.7 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001926/1.751, allocations: 2.466 MB / 0.8405 GB, free: 108.2 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00276/1.754, allocations: 2.239 MB / 0.8427 GB, free: 106 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.945e-05/1.754, allocations: 305.1 kB / 0.843 GB, free: 105.7 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006003/1.76, allocations: 5.292 MB / 0.8481 GB, free: 100.4 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008557/1.768, allocations: 10.11 MB / 0.858 GB, free: 88.03 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01509/1.783, allocations: 16.61 MB / 0.8742 GB, free: 69.12 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001425/1.784, allocations: 44 kB / 0.8743 GB, free: 69.07 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1434) (initialization): time 0.02347/1.807, allocations: 17.52 MB / 0.8914 GB, free: 51.48 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 9.344e-05/1.807, allocations: 76 kB / 0.8915 GB, free: 51.41 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002316/1.807, allocations: 160 kB / 0.8916 GB, free: 51.25 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009194/1.817, allocations: 3.118 MB / 0.8947 GB, free: 48.12 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007617/1.824, allocations: 2.399 MB / 0.897 GB, free: 45.72 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02321/1.847, allocations: 22.79 MB / 0.9192 GB, free: 22.73 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007232/1.855, allocations: 0.6669 MB / 0.9199 GB, free: 22.06 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001674/1.856, allocations: 0.5546 MB / 0.9204 GB, free: 21.51 MB / 0.5607 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 (1262): * Single equations (assignments): 1258 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(6,80,80.6%), (6,80,80.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01096/1.867, allocations: 7.282 MB / 0.9276 GB, free: 14.21 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001216/1.869, allocations: 0.6753 MB / 0.9282 GB, free: 13.53 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01572/1.884, allocations: 12.41 MB / 0.9403 GB, free: 1.023 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01525/1.899, allocations: 9.857 MB / 0.95 GB, free: 7.094 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.754e-05/1.9, allocations: 24 kB / 0.95 GB, free: 7.07 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.022e-05/1.9, allocations: 31.88 kB / 0.95 GB, free: 7.039 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3071/2.207, allocations: 29.12 MB / 0.9784 GB, free: 187.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.596e-05/2.207, allocations: 14.16 kB / 0.9785 GB, free: 187.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004141/2.211, allocations: 1.065 MB / 0.9795 GB, free: 187.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009684/2.221, allocations: 2.87 MB / 0.9823 GB, free: 187.7 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001063/2.222, allocations: 149.8 kB / 0.9824 GB, free: 187.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02245/2.244, allocations: 21.09 MB / 1.003 GB, free: 179.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.037e-06/2.244, allocations: 15.16 kB / 1.003 GB, free: 179.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02015/2.264, allocations: 17.26 MB / 1.02 GB, free: 172.6 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003424/2.268, allocations: 1.523 MB / 1.021 GB, free: 172.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001127/2.269, allocations: 131.4 kB / 1.022 GB, free: 172.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00296/2.272, allocations: 344.4 kB / 1.022 GB, free: 172 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001036/2.273, allocations: 0.5154 MB / 1.022 GB, free: 171.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003869/2.273, allocations: 202 kB / 1.023 GB, free: 171.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.005865/2.279, allocations: 4.304 MB / 1.027 GB, free: 169 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/2.279, allocations: 0 / 1.027 GB, free: 169 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.01173/2.291, allocations: 2.949 MB / 1.03 GB, free: 166 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 46 * 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 (553): * Single equations (assignments): 549 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(6,80,75.0%), (6,74,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.02101/2.312, allocations: 18.08 MB / 1.047 GB, free: 150.2 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01833/2.33, allocations: 13 MB / 1.06 GB, free: 138.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-05/2.33, allocations: 11.78 kB / 1.06 GB, free: 138.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.007883/2.338, allocations: 5.736 MB / 1.066 GB, free: 132.5 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00798/2.346, allocations: 1.598 MB / 1.067 GB, free: 131 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1386/2.485, allocations: 101.9 MB / 1.167 GB, free: 22.12 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01658/2.501, allocations: 11.2 MB / 1.178 GB, free: 10.87 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.008154/2.509, allocations: 3.813 MB / 1.181 GB, free: 7.051 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009106/2.518, allocations: 6.002 MB / 1.187 GB, free: 1.047 MB / 0.5919 GB Notification: Performance of SimCode: time 1.473e-06/2.518, allocations: 3.938 kB / 1.187 GB, free: 1.043 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5088/3.027, allocations: 230.5 MB / 1.412 GB, free: 37.91 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 49.43/52.46, allocations: 12.05 kB / 1.412 GB, free: 37.9 MB / 0.6075 GB " [Timeout remaining time 607] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 55.59074969997164]