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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009756/0.0009758, allocations: 90.11 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001291/0.001291, allocations: 176.9 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.451/1.451, allocations: 223.3 MB / 241.6 MB, free: 204 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002948/0.0002951, allocations: 8 kB / 301.5 MB, free: 6.047 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1126, allocations: 50.41 MB / 351.9 MB, free: 3.625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.2295/0.3421, allocations: 26.73 MB / 378.7 MB, free: 8.449 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01496/0.357, allocations: 7.018 MB / 385.7 MB, free: 7.332 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007299/0.3644, allocations: 239.8 kB / 385.9 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009125/0.3735, allocations: 1.963 MB / 387.9 MB, free: 6.453 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01776/0.3914, allocations: 2.395 MB / 390.3 MB, free: 5.492 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006895/0.3983, allocations: 1.711 MB / 392 MB, free: 4.555 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.02282/0.4211, allocations: 17.4 MB / 409.4 MB, free: 10.39 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08786/0.509, allocations: 43.61 MB / 453 MB, free: 252 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01435/0.5234, allocations: 6.784 MB / 459.8 MB, free: 9.449 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01561/0.5391, allocations: 8.137 MB / 467.9 MB, free: 1.277 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005078/0.5442, allocations: 1.141 MB / 469.1 MB, free: 140 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008491/0.5527, allocations: 1.387 MB / 470.5 MB, free: 14.75 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006752/0.5595, allocations: 3.281 MB / 473.7 MB, free: 11.46 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01856/0.5781, allocations: 8.391 MB / 482.1 MB, free: 3.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04341/0.6215, allocations: 36.65 MB / 0.5066 GB, free: 14.25 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.6216, allocations: 0 / 0.5066 GB, free: 14.25 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.6216, allocations: 0 / 0.5066 GB, free: 14.25 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.001162/0.6228, allocations: 3.938 kB / 0.5066 GB, free: 14.25 MB / 430.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.5194/1.142, allocations: 18.06 MB / 0.5243 GB, free: 104.5 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.966e-05/1.142, allocations: 9.625 kB / 0.5243 GB, free: 104.5 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01234/1.155, allocations: 2.959 MB / 0.5272 GB, free: 103.4 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04686/1.201, allocations: 8.365 MB / 0.5353 GB, free: 102.1 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02337/1.225, allocations: 11.29 MB / 0.5464 GB, free: 94.66 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001436/1.226, allocations: 1.342 MB / 0.5477 GB, free: 94.05 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007108/1.233, allocations: 1.745 MB / 0.5494 GB, free: 93.47 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07556/1.309, allocations: 28.77 MB / 0.5775 GB, free: 66.97 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001022/1.31, allocations: 28.39 kB / 0.5775 GB, free: 66.95 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007046/1.317, allocations: 0.7257 MB / 0.5782 GB, free: 66.23 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007977/1.318, allocations: 0.861 MB / 0.579 GB, free: 65.37 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05295/1.371, allocations: 24.83 MB / 0.6033 GB, free: 40.52 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1724/1.543, allocations: 88.25 MB / 0.6895 GB, free: 14.88 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4676/2.011, allocations: 35.16 MB / 0.7238 GB, free: 126.2 MB / 494.3 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01042/2.022, allocations: 5.35 MB / 0.729 GB, free: 126.2 MB / 494.3 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005515/2.022, allocations: 205.2 kB / 0.7292 GB, free: 126.1 MB / 494.3 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.503e-05/2.022, allocations: 98.62 kB / 0.7293 GB, free: 126 MB / 494.3 MB Notification: Performance of pre-optimization done (n=589): time 7.755e-06/2.022, allocations: 0 / 0.7293 GB, free: 126 MB / 494.3 MB Notification: Performance of matching and sorting (n=589): time 0.03451/2.057, allocations: 14.86 MB / 0.7438 GB, free: 122 MB / 494.3 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.656e-05/2.057, allocations: 144.8 kB / 0.744 GB, free: 121.9 MB / 494.3 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01202/2.069, allocations: 6.413 MB / 0.7502 GB, free: 119.7 MB / 494.3 MB Notification: Performance of collectPreVariables (initialization): time 0.00146/2.071, allocations: 121.3 kB / 0.7503 GB, free: 119.6 MB / 494.3 MB Notification: Performance of collectInitialEqns (initialization): time 0.004934/2.075, allocations: 7.599 MB / 0.7578 GB, free: 114.2 MB / 494.3 MB Notification: Performance of collectInitialBindings (initialization): time 0.002349/2.078, allocations: 2.047 MB / 0.7598 GB, free: 112.6 MB / 494.3 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001388/2.079, allocations: 0.8185 MB / 0.7606 GB, free: 112.2 MB / 494.3 MB Notification: Performance of setup shared object (initialization): time 5.419e-05/2.079, allocations: 302.1 kB / 0.7608 GB, free: 111.9 MB / 494.3 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007096/2.086, allocations: 4.816 MB / 0.7656 GB, free: 110.2 MB / 494.3 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009339/2.096, allocations: 9.55 MB / 0.7749 GB, free: 102.1 MB / 494.3 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01777/2.114, allocations: 15.47 MB / 0.79 GB, free: 90.65 MB / 494.3 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002418/2.114, allocations: 44 kB / 0.79 GB, free: 90.61 MB / 494.3 MB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.0308/2.145, allocations: 15.54 MB / 0.8052 GB, free: 75.26 MB / 494.3 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002526/2.145, allocations: 75.94 kB / 0.8053 GB, free: 75.18 MB / 494.3 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003236/2.145, allocations: 160.6 kB / 0.8054 GB, free: 75.03 MB / 494.3 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005752/2.151, allocations: 1.668 MB / 0.8071 GB, free: 73.36 MB / 494.3 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008319/2.159, allocations: 2.347 MB / 0.8093 GB, free: 71.01 MB / 494.3 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01432/2.174, allocations: 10.87 MB / 0.82 GB, free: 60.01 MB / 494.3 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009204/2.183, allocations: 1.343 MB / 0.8213 GB, free: 58.66 MB / 494.3 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002277/2.185, allocations: 0.5319 MB / 0.8218 GB, free: 58.12 MB / 494.3 MB 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 (1249): * Single equations (assignments): 1240 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01497/2.2, allocations: 7.141 MB / 0.8288 GB, free: 50.96 MB / 494.3 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002166/2.203, allocations: 0.6188 MB / 0.8294 GB, free: 50.34 MB / 494.3 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01931/2.222, allocations: 10.29 MB / 0.8394 GB, free: 39.95 MB / 494.3 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01255/2.234, allocations: 7.928 MB / 0.8472 GB, free: 31.94 MB / 494.3 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.699e-05/2.235, allocations: 15.94 kB / 0.8472 GB, free: 31.93 MB / 494.3 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001047/2.235, allocations: 31.88 kB / 0.8472 GB, free: 31.89 MB / 494.3 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05654/2.291, allocations: 26.24 MB / 0.8728 GB, free: 5.199 MB / 494.3 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.003e-05/2.291, allocations: 12.22 kB / 0.8729 GB, free: 5.188 MB / 494.3 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004341/2.296, allocations: 1.01 MB / 0.8738 GB, free: 4.176 MB / 494.3 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005223/2.301, allocations: 1.459 MB / 0.8753 GB, free: 2.715 MB / 494.3 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001114/2.302, allocations: 132 kB / 0.8754 GB, free: 2.586 MB / 494.3 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01666/2.319, allocations: 10.44 MB / 0.8856 GB, free: 8.02 MB / 0.4983 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.318e-05/2.319, allocations: 11.94 kB / 0.8856 GB, free: 8.008 MB / 0.4983 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2907/2.609, allocations: 14.37 MB / 0.8996 GB, free: 148.2 MB / 0.4983 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005044/2.615, allocations: 1.458 MB / 0.9011 GB, free: 148.1 MB / 0.4983 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001948/2.617, allocations: 116.1 kB / 0.9012 GB, free: 148.1 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004/2.621, allocations: 330.5 kB / 0.9015 GB, free: 148.1 MB / 0.4983 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001263/2.622, allocations: 407.3 kB / 0.9019 GB, free: 148 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004906/2.622, allocations: 169.1 kB / 0.902 GB, free: 148 MB / 0.4983 GB Notification: Performance of sorting global known variables: time 0.01167/2.634, allocations: 4.304 MB / 0.9062 GB, free: 147.2 MB / 0.4983 GB Notification: Performance of sort global known variables: time 5.21e-07/2.634, allocations: 0 / 0.9062 GB, free: 147.2 MB / 0.4983 GB Notification: Performance of remove unused functions: time 0.01581/2.65, allocations: 4.046 MB / 0.9102 GB, free: 146.1 MB / 0.4983 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 (534): * Single equations (assignments): 525 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.02207/2.672, allocations: 15.18 MB / 0.925 GB, free: 139.1 MB / 0.4983 GB Notification: Performance of simCode: created initialization part: time 0.0217/2.694, allocations: 11.51 MB / 0.9362 GB, free: 134.8 MB / 0.4983 GB Notification: Performance of simCode: created event and clocks part: time 1.766e-05/2.694, allocations: 0 / 0.9362 GB, free: 134.8 MB / 0.4983 GB Notification: Performance of simCode: created simulation system equations: time 0.009254/2.703, allocations: 4.733 MB / 0.9409 GB, free: 132.9 MB / 0.4983 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0199/2.723, allocations: 1.469 MB / 0.9423 GB, free: 132.4 MB / 0.4983 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2124/2.935, allocations: 121.1 MB / 1.061 GB, free: 10.58 MB / 0.4983 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02265/2.958, allocations: 11.27 MB / 1.072 GB, free: 15.26 MB / 0.5139 GB Notification: Performance of simCode: alias equations: time 0.01381/2.972, allocations: 3.763 MB / 1.075 GB, free: 11.48 MB / 0.5139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01413/2.986, allocations: 5.877 MB / 1.081 GB, free: 5.605 MB / 0.5139 GB Notification: Performance of SimCode: time 2.565e-06/2.986, allocations: 0 / 1.081 GB, free: 5.605 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.064/5.05, allocations: 203.3 MB / 1.279 GB, free: 88.64 MB / 0.5139 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002549/5.051, allocations: 294 kB / 1.28 GB, free: 88.26 MB / 0.5139 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.247/11.3, allocations: 2.031 kB / 1.28 GB, free: 88.26 MB / 0.5139 GB (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 --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) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench_res.mat","/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) Reference file matches