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.001202/0.001202, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001037/0.001037, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.9018/0.9018, allocations: 173.4 MB / 200.4 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] 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 1.683e-06/1.683e-06, allocations: 0 / 318.4 MB, free: 6.227 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.861e-05/2.029e-05, allocations: 8.609 kB / 318.4 MB, free: 6.219 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.01824/0.01826, allocations: 24.51 MB / 342.9 MB, free: 13.58 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01305/0.03131, allocations: 6.981 MB / 349.9 MB, free: 6.578 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005876/0.03719, allocations: 310.4 kB / 350.2 MB, free: 6.273 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01449/0.05168, allocations: 12.93 MB / 363.2 MB, free: 9.316 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008228/0.05991, allocations: 2.82 MB / 366 MB, free: 6.484 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004885/0.06479, allocations: 1.87 MB / 367.8 MB, free: 4.633 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01793/0.08273, allocations: 18.92 MB / 386.8 MB, free: 1.641 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04226/0.125, allocations: 28.17 MB / 414.9 MB, free: 5.242 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02558/0.1506, allocations: 15.1 MB / 430 MB, free: 6.133 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01649/0.1671, allocations: 9.751 MB / 439.8 MB, free: 12.36 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.007773/0.1748, allocations: 2.918 MB / 442.7 MB, free: 9.445 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01052/0.1854, allocations: 3.179 MB / 445.9 MB, free: 6.266 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.008158/0.1935, allocations: 5.572 MB / 451.5 MB, free: 0.6797 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.314/0.5075, allocations: 7.235 MB / 458.7 MB, free: 52.53 MB / 410.8 MB Notification: Performance of NFConvertDAE.convert: time 0.03096/0.5384, allocations: 39.5 MB / 498.2 MB, free: 38.27 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.933e-06/0.5384, allocations: 0 / 498.2 MB, free: 38.27 MB / 410.8 MB Notification: Performance of FrontEnd: time 1.714e-06/0.5385, allocations: 0 / 498.2 MB, free: 38.27 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.001065/0.5395, allocations: 0 / 498.2 MB, free: 38.27 MB / 410.8 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.04944/0.589, allocations: 22.06 MB / 0.5081 GB, free: 24.6 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.149e-05/0.589, allocations: 10.27 kB / 0.5081 GB, free: 24.6 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0108/0.5998, allocations: 2.963 MB / 0.511 GB, free: 22.36 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02509/0.6249, allocations: 8.408 MB / 0.5192 GB, free: 14.02 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02358/0.6485, allocations: 11.88 MB / 0.5308 GB, free: 2.648 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001256/0.6497, allocations: 1.338 MB / 0.5321 GB, free: 1.316 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00929/0.659, allocations: 1.762 MB / 0.5338 GB, free: 15.56 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07757/0.7366, allocations: 28.98 MB / 0.5621 GB, free: 2.48 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004734/0.7371, allocations: 23.91 kB / 0.5621 GB, free: 2.457 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004351/0.7414, allocations: 0.7323 MB / 0.5628 GB, free: 1.738 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005925/0.742, allocations: 0.8415 MB / 0.5637 GB, free: 0.8945 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04743/0.7895, allocations: 24.72 MB / 0.5878 GB, free: 8.156 MB / 474.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2938/1.083, allocations: 78.87 MB / 0.6648 GB, free: 127.3 MB / 0.4949 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01151/1.095, allocations: 12.75 MB / 0.6773 GB, free: 126.8 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004984/1.1, allocations: 5.032 MB / 0.6822 GB, free: 126.2 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003349/1.1, allocations: 108.8 kB / 0.6823 GB, free: 126.2 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.687e-05/1.1, allocations: 90.33 kB / 0.6824 GB, free: 126.2 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=577): time 8.466e-06/1.1, allocations: 0 / 0.6824 GB, free: 126.2 MB / 0.4949 GB Notification: Performance of matching and sorting (n=577): time 0.01959/1.12, allocations: 14.65 MB / 0.6967 GB, free: 119.6 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.489e-05/1.12, allocations: 141.7 kB / 0.6968 GB, free: 119.5 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00671/1.127, allocations: 6.696 MB / 0.7034 GB, free: 114.7 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0005704/1.127, allocations: 121.7 kB / 0.7035 GB, free: 114.6 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.002327/1.129, allocations: 7.866 MB / 0.7112 GB, free: 106.7 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.001349/1.131, allocations: 2.089 MB / 0.7132 GB, free: 104.6 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002039/1.133, allocations: 2.072 MB / 0.7152 GB, free: 102.6 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 3.629e-05/1.133, allocations: 301.1 kB / 0.7155 GB, free: 102.3 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004285/1.137, allocations: 4.74 MB / 0.7201 GB, free: 97.52 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005643/1.143, allocations: 9.486 MB / 0.7294 GB, free: 85.85 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01182/1.155, allocations: 15.31 MB / 0.7443 GB, free: 68.32 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001479/1.155, allocations: 46.95 kB / 0.7444 GB, free: 68.28 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.01881/1.174, allocations: 15.37 MB / 0.7594 GB, free: 52.82 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 8.715e-05/1.174, allocations: 74.97 kB / 0.7595 GB, free: 52.75 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001811/1.174, allocations: 164 kB / 0.7596 GB, free: 52.59 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002766/1.177, allocations: 1.653 MB / 0.7612 GB, free: 50.93 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005/1.182, allocations: 2.355 MB / 0.7635 GB, free: 48.57 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008786/1.19, allocations: 11.3 MB / 0.7746 GB, free: 37.18 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005858/1.196, allocations: 1.378 MB / 0.7759 GB, free: 35.79 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0017/1.198, allocations: 0.5273 MB / 0.7764 GB, free: 35.26 MB / 0.4949 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.01023/1.208, allocations: 7.153 MB / 0.7834 GB, free: 28.09 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001519/1.21, allocations: 0.6442 MB / 0.784 GB, free: 27.44 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009987/1.22, allocations: 10.07 MB / 0.7939 GB, free: 17.26 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006534/1.226, allocations: 7.726 MB / 0.8014 GB, free: 9.453 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.604e-05/1.226, allocations: 16 kB / 0.8014 GB, free: 9.438 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.653e-05/1.226, allocations: 27.89 kB / 0.8015 GB, free: 9.41 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0321/1.258, allocations: 24.43 MB / 0.8253 GB, free: 0.8516 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.195e-05/1.258, allocations: 8.969 kB / 0.8253 GB, free: 0.8438 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.1974/1.456, allocations: 1.003 MB / 0.8263 GB, free: 163.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003635/1.459, allocations: 1.464 MB / 0.8277 GB, free: 163.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001011/1.46, allocations: 127.6 kB / 0.8279 GB, free: 163.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01076/1.471, allocations: 10.84 MB / 0.8385 GB, free: 161.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.557e-06/1.471, allocations: 12.03 kB / 0.8385 GB, free: 161.9 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01439/1.486, allocations: 14.08 MB / 0.8522 GB, free: 157.2 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002901/1.489, allocations: 1.445 MB / 0.8536 GB, free: 156.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008961/1.489, allocations: 108.9 kB / 0.8537 GB, free: 156.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001774/1.491, allocations: 326.5 kB / 0.854 GB, free: 156.5 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005734/1.492, allocations: 417.3 kB / 0.8544 GB, free: 156.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002186/1.492, allocations: 169.3 kB / 0.8546 GB, free: 156.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.005823/1.498, allocations: 4.303 MB / 0.8588 GB, free: 154.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4e-08/1.498, allocations: 0 / 0.8588 GB, free: 154.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01203/1.51, allocations: 4.092 MB / 0.8628 GB, free: 153.6 MB / 0.5105 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.01375/1.524, allocations: 14.88 MB / 0.8773 GB, free: 143.4 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01268/1.536, allocations: 10.93 MB / 0.888 GB, free: 134 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.305e-05/1.536, allocations: 0 / 0.888 GB, free: 134 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.005571/1.542, allocations: 4.341 MB / 0.8922 GB, free: 130.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005405/1.547, allocations: 1.561 MB / 0.8938 GB, free: 129 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1182/1.665, allocations: 94.77 MB / 0.9863 GB, free: 29.11 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01609/1.682, allocations: 10.94 MB / 0.997 GB, free: 18.11 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.006625/1.688, allocations: 3.77 MB / 1.001 GB, free: 14.33 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006097/1.694, allocations: 5.917 MB / 1.006 GB, free: 8.414 MB / 0.5105 GB Notification: Performance of SimCode: time 1.332e-06/1.694, allocations: 0 / 1.006 GB, free: 8.414 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5333/2.228, allocations: 209.8 MB / 1.211 GB, free: 113.8 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.46/15.69, allocations: 3.719 kB / 1.211 GB, free: 113.8 MB / 0.5105 GB " [Timeout remaining time 644] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_QuasiStatic_Machines_Examples_TransformerTestbench_fmu --startTime=0 --stopTime=0.1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/QuasiStatic/Machines/Examples/TransformerTestbench/TransformerTestbench.csv","/var/lib/jenkins/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.769757993519306]