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.001703/0.001703, allocations: 115.6 kB / 20.43 MB, free: 1.457 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.002093/0.002093, allocations: 213.6 kB / 23.75 MB, free: 4.668 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.55/1.55, allocations: 230.6 MB / 257.5 MB, free: 8.027 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.001547/0.001547, allocations: 43.92 kB / 377.8 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2726, allocations: 53.35 MB / 431.1 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.03274/0.3053, allocations: 28.77 MB / 459.9 MB, free: 9.988 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01595/0.3213, allocations: 7.227 MB / 467.1 MB, free: 2.738 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006078/0.3274, allocations: 314.4 kB / 467.4 MB, free: 2.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03042/0.3578, allocations: 13.25 MB / 480.7 MB, free: 5.152 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01079/0.3686, allocations: 2.649 MB / 483.3 MB, free: 2.492 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006839/0.3754, allocations: 2.096 MB / 485.4 MB, free: 416 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02617/0.4016, allocations: 18.54 MB / 0.4922 GB, free: 13.81 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06087/0.4624, allocations: 28.4 MB / 0.5199 GB, free: 1.188 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01854/0.481, allocations: 10.15 MB / 0.5298 GB, free: 7.027 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.5158/0.9968, allocations: 11.15 MB / 0.5407 GB, free: 31.99 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00834/1.005, allocations: 2.916 MB / 0.5435 GB, free: 31.99 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01138/1.017, allocations: 3.196 MB / 0.5467 GB, free: 31.99 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009766/1.026, allocations: 5.488 MB / 0.552 GB, free: 31.99 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02031/1.047, allocations: 10.82 MB / 0.5626 GB, free: 28.93 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04519/1.092, allocations: 39.1 MB / 0.6008 GB, free: 5.426 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.694e-06/1.092, allocations: 0 / 0.6008 GB, free: 5.426 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.194e-06/1.092, allocations: 0 / 0.6008 GB, free: 5.426 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001283/1.093, allocations: 0 / 0.6008 GB, free: 5.426 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.0678/1.161, allocations: 22.25 MB / 0.6225 GB, free: 2.039 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/1.161, allocations: 12.02 kB / 0.6225 GB, free: 2.027 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01114/1.172, allocations: 2.959 MB / 0.6254 GB, free: 15.06 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.047/1.219, allocations: 8.242 MB / 0.6335 GB, free: 6.895 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02991/1.249, allocations: 11.89 MB / 0.6451 GB, free: 11.41 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001475/1.25, allocations: 1.34 MB / 0.6464 GB, free: 10.07 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007209/1.258, allocations: 1.766 MB / 0.6481 GB, free: 8.32 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08028/1.338, allocations: 28.77 MB / 0.6762 GB, free: 11.51 MB / 0.5138 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006747/1.339, allocations: 19.91 kB / 0.6762 GB, free: 11.49 MB / 0.5138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005868/1.345, allocations: 0.7252 MB / 0.6769 GB, free: 10.77 MB / 0.5138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009343/1.345, allocations: 0.8475 MB / 0.6778 GB, free: 9.926 MB / 0.5138 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05899/1.404, allocations: 24.84 MB / 0.702 GB, free: 1.07 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4539/1.858, allocations: 86 MB / 0.786 GB, free: 109.1 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02094/1.879, allocations: 12.86 MB / 0.7986 GB, free: 108.8 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008376/1.888, allocations: 5.038 MB / 0.8035 GB, free: 108.6 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000757/1.888, allocations: 178.2 kB / 0.8036 GB, free: 108.6 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001203/1.889, allocations: 93.61 kB / 0.8037 GB, free: 108.6 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=577): time 1.43e-05/1.889, allocations: 0 / 0.8037 GB, free: 108.6 MB / 0.5763 GB Notification: Performance of matching and sorting (n=577): time 0.03678/1.925, allocations: 14.7 MB / 0.8181 GB, free: 106.9 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.278e-05/1.925, allocations: 138.2 kB / 0.8182 GB, free: 106.8 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01332/1.939, allocations: 6.425 MB / 0.8245 GB, free: 105.2 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.001209/1.94, allocations: 116 kB / 0.8246 GB, free: 105.1 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.005097/1.945, allocations: 7.902 MB / 0.8323 GB, free: 98.27 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002764/1.948, allocations: 2.105 MB / 0.8344 GB, free: 96.46 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007443/1.955, allocations: 2.12 MB / 0.8365 GB, free: 95.25 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 5.279e-05/1.955, allocations: 307.6 kB / 0.8367 GB, free: 94.95 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008076/1.963, allocations: 4.745 MB / 0.8414 GB, free: 92.42 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01082/1.974, allocations: 9.469 MB / 0.8506 GB, free: 83.49 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01843/1.993, allocations: 15.33 MB / 0.8656 GB, free: 68.54 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001897/1.993, allocations: 46 kB / 0.8656 GB, free: 68.5 MB / 0.5763 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.02913/2.022, allocations: 15.42 MB / 0.8807 GB, free: 53.98 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002666/2.022, allocations: 76 kB / 0.8808 GB, free: 53.91 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003475/2.023, allocations: 160 kB / 0.8809 GB, free: 53.75 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00586/2.028, allocations: 1.657 MB / 0.8825 GB, free: 52.09 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008481/2.037, allocations: 2.359 MB / 0.8848 GB, free: 49.91 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01487/2.052, allocations: 11.51 MB / 0.8961 GB, free: 38.38 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008516/2.06, allocations: 1.366 MB / 0.8974 GB, free: 37.01 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002091/2.062, allocations: 0.543 MB / 0.8979 GB, free: 36.46 MB / 0.5763 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.01308/2.075, allocations: 7.145 MB / 0.9049 GB, free: 29.48 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001724/2.077, allocations: 0.6481 MB / 0.9056 GB, free: 28.83 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01739/2.095, allocations: 10.08 MB / 0.9154 GB, free: 18.69 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01253/2.107, allocations: 7.771 MB / 0.923 GB, free: 10.87 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-05/2.107, allocations: 12 kB / 0.923 GB, free: 10.86 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000116/2.107, allocations: 27.89 kB / 0.923 GB, free: 10.83 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06254/2.17, allocations: 25.36 MB / 0.9478 GB, free: 1.516 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.115e-05/2.17, allocations: 11.94 kB / 0.9478 GB, free: 1.504 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004957/2.175, allocations: 1.022 MB / 0.9488 GB, free: 0.5352 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006223/2.181, allocations: 1.465 MB / 0.9502 GB, free: 15.06 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001293/2.182, allocations: 140 kB / 0.9504 GB, free: 14.93 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0182/2.201, allocations: 11.06 MB / 0.9612 GB, free: 3.777 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.595e-05/2.201, allocations: 15.75 kB / 0.9612 GB, free: 3.766 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02773/2.228, allocations: 14.14 MB / 0.975 GB, free: 5.328 MB / 0.6232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005191/2.233, allocations: 1.447 MB / 0.9764 GB, free: 3.875 MB / 0.6232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002307/2.236, allocations: 112 kB / 0.9765 GB, free: 3.766 MB / 0.6232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004427/2.24, allocations: 311.7 kB / 0.9768 GB, free: 3.461 MB / 0.6232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001613/2.242, allocations: 431.6 kB / 0.9772 GB, free: 3.043 MB / 0.6232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009541/2.243, allocations: 176 kB / 0.9774 GB, free: 2.871 MB / 0.6232 GB Notification: Performance of sorting global known variables: time 0.2707/2.513, allocations: 4.301 MB / 0.9816 GB, free: 217.5 MB / 0.6232 GB Notification: Performance of sort global known variables: time 3.21e-07/2.513, allocations: 0 / 0.9816 GB, free: 217.5 MB / 0.6232 GB Notification: Performance of remove unused functions: time 0.01399/2.527, allocations: 4.086 MB / 0.9856 GB, free: 217.1 MB / 0.6232 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.02019/2.548, allocations: 14.92 MB / 1 GB, free: 212.8 MB / 0.6232 GB Notification: Performance of simCode: created initialization part: time 0.02221/2.57, allocations: 10.96 MB / 1.011 GB, free: 208.6 MB / 0.6232 GB Notification: Performance of simCode: created event and clocks part: time 2.055e-05/2.57, allocations: 0 / 1.011 GB, free: 208.6 MB / 0.6232 GB Notification: Performance of simCode: created simulation system equations: time 0.009973/2.58, allocations: 4.346 MB / 1.015 GB, free: 206.9 MB / 0.6232 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01335/2.593, allocations: 1.563 MB / 1.017 GB, free: 206.4 MB / 0.6232 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1645/2.758, allocations: 94.77 MB / 1.109 GB, free: 123.4 MB / 0.6232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02128/2.779, allocations: 11.26 MB / 1.12 GB, free: 112.1 MB / 0.6232 GB Notification: Performance of simCode: alias equations: time 0.009911/2.789, allocations: 3.77 MB / 1.124 GB, free: 108.3 MB / 0.6232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00902/2.798, allocations: 5.951 MB / 1.13 GB, free: 102.4 MB / 0.6232 GB Notification: Performance of SimCode: time 1.783e-06/2.798, allocations: 0 / 1.13 GB, free: 102.4 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5212/3.319, allocations: 212.8 MB / 1.337 GB, free: 152 MB / 0.6232 GB Notification: Performance of buildModelFMU: Generate platform static: time 28.8/32.12, allocations: 11.86 kB / 1.337 GB, free: 152 MB / 0.6232 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 & /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: 35.41876154090278]