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: translateModel(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200,variableFilter="time|source.plug_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench") translateModel(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200,variableFilter="time|source.plug_p.reference.gamma",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001421/0.001425, allocations: 107.3 kB / 16.51 MB, free: 6.715 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.00106/0.00106, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.289/1.289, allocations: 222.9 MB / 241.1 MB, free: 13.66 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009131/0.0009131, allocations: 48.09 kB / 300 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07658/0.07751, allocations: 49.44 MB / 349.4 MB, free: 4.625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.2057/0.2832, allocations: 28.04 MB / 377.4 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01139/0.2946, allocations: 7.063 MB / 384.5 MB, free: 7.121 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00521/0.2999, allocations: 252.5 kB / 384.7 MB, free: 7.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03295/0.3329, allocations: 12.44 MB / 397.2 MB, free: 1.234 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01292/0.3458, allocations: 2.406 MB / 399.6 MB, free: 15.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007754/0.3536, allocations: 1.72 MB / 401.3 MB, free: 14.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02139/0.375, allocations: 17.41 MB / 418.7 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06201/0.437, allocations: 37.2 MB / 455.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01266/0.4497, allocations: 8.73 MB / 464.7 MB, free: 2.574 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01538/0.4651, allocations: 10.66 MB / 475.3 MB, free: 7.879 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005036/0.4702, allocations: 2.074 MB / 477.4 MB, free: 5.805 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007483/0.4777, allocations: 2.316 MB / 479.7 MB, free: 3.492 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006127/0.4838, allocations: 4.612 MB / 484.3 MB, free: 14.87 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01522/0.4991, allocations: 9.928 MB / 494.2 MB, free: 4.898 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3529/0.852, allocations: 38.24 MB / 0.52 GB, free: 68.7 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.029e-05/0.852, allocations: 1.156 kB / 0.52 GB, free: 68.7 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.8521, allocations: 0 / 0.52 GB, free: 68.7 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.001027/0.8531, allocations: 0 / 0.52 GB, free: 68.7 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.06308/0.9162, allocations: 22.04 MB / 0.5415 GB, free: 63.69 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.452e-05/0.9162, allocations: 9.781 kB / 0.5415 GB, free: 63.69 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04437/0.9606, allocations: 8.323 MB / 0.5497 GB, free: 61.06 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02324/0.9839, allocations: 11.27 MB / 0.5607 GB, free: 55.86 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009688/0.9849, allocations: 1.336 MB / 0.562 GB, free: 54.53 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006184/0.9911, allocations: 1.746 MB / 0.5637 GB, free: 52.79 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06559/1.057, allocations: 28.76 MB / 0.5918 GB, free: 23.99 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005656/1.057, allocations: 19.8 kB / 0.5918 GB, free: 23.97 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005405/1.063, allocations: 0.7266 MB / 0.5925 GB, free: 23.25 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006333/1.063, allocations: 0.8648 MB / 0.5933 GB, free: 22.39 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04979/1.113, allocations: 24.83 MB / 0.6176 GB, free: 13.54 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1517/1.265, allocations: 88.05 MB / 0.7036 GB, free: 5.16 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.197/1.462, allocations: 35.18 MB / 0.7379 GB, free: 156.6 MB / 0.5138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007822/1.47, allocations: 5.387 MB / 0.7432 GB, free: 156.2 MB / 0.5138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003938/1.47, allocations: 212.1 kB / 0.7434 GB, free: 156.1 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.685e-05/1.47, allocations: 93.81 kB / 0.7435 GB, free: 156 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=589): time 7.494e-06/1.47, allocations: 0 / 0.7435 GB, free: 156 MB / 0.5138 GB Notification: Performance of matching and sorting (n=589): time 0.02758/1.498, allocations: 14.8 MB / 0.7579 GB, free: 151.4 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.611e-05/1.498, allocations: 141.1 kB / 0.7581 GB, free: 151.3 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007581/1.506, allocations: 6.417 MB / 0.7643 GB, free: 149.1 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0004035/1.506, allocations: 119.8 kB / 0.7644 GB, free: 149 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.002686/1.509, allocations: 7.595 MB / 0.7719 GB, free: 143.6 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001179/1.51, allocations: 2.04 MB / 0.7739 GB, free: 142.1 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002297/1.512, allocations: 2.107 MB / 0.7759 GB, free: 141 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.418e-05/1.512, allocations: 301.1 kB / 0.7762 GB, free: 140.7 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005145/1.517, allocations: 4.819 MB / 0.7809 GB, free: 139 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009976/1.527, allocations: 9.549 MB / 0.7902 GB, free: 130.9 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02/1.547, allocations: 15.46 MB / 0.8053 GB, free: 114.6 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001823/1.548, allocations: 48 kB / 0.8054 GB, free: 114.6 MB / 0.5138 GB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.0227/1.57, allocations: 15.53 MB / 0.8205 GB, free: 100.2 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 8.077e-05/1.57, allocations: 79.94 kB / 0.8206 GB, free: 100.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001779/1.571, allocations: 160 kB / 0.8208 GB, free: 100 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004997/1.576, allocations: 1.668 MB / 0.8224 GB, free: 98.34 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006786/1.582, allocations: 2.347 MB / 0.8247 GB, free: 95.98 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01173/1.594, allocations: 10.84 MB / 0.8353 GB, free: 85.02 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007262/1.601, allocations: 1.358 MB / 0.8366 GB, free: 83.64 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001303/1.603, allocations: 0.5273 MB / 0.8371 GB, free: 83.12 MB / 0.5138 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 (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.01024/1.613, allocations: 7.145 MB / 0.8441 GB, free: 75.95 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001271/1.614, allocations: 0.6133 MB / 0.8447 GB, free: 75.33 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0138/1.628, allocations: 10.29 MB / 0.8547 GB, free: 64.94 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009359/1.637, allocations: 7.929 MB / 0.8625 GB, free: 56.93 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.789e-05/1.638, allocations: 15.38 kB / 0.8625 GB, free: 56.91 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.991e-05/1.638, allocations: 27.89 kB / 0.8625 GB, free: 56.89 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03354/1.671, allocations: 26.23 MB / 0.8882 GB, free: 30.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.045e-05/1.671, allocations: 16.03 kB / 0.8882 GB, free: 30.18 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00351/1.675, allocations: 1.006 MB / 0.8891 GB, free: 29.18 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004599/1.679, allocations: 1.469 MB / 0.8906 GB, free: 27.7 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003364/1.68, allocations: 128 kB / 0.8907 GB, free: 27.57 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01102/1.691, allocations: 10.41 MB / 0.9009 GB, free: 17.05 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/1.691, allocations: 13.25 kB / 0.9009 GB, free: 17.04 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01538/1.706, allocations: 14.38 MB / 0.9149 GB, free: 2.305 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002544/1.709, allocations: 1.448 MB / 0.9163 GB, free: 0.8281 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007066/1.709, allocations: 112 kB / 0.9164 GB, free: 0.7188 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002432/1.712, allocations: 323.7 kB / 0.9168 GB, free: 412 kB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006917/1.713, allocations: 400.4 kB / 0.9171 GB, free: 4 kB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.1809/1.893, allocations: 167.6 kB / 0.9173 GB, free: 169.1 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.009064/1.903, allocations: 4.308 MB / 0.9215 GB, free: 168.9 MB / 0.5138 GB Notification: Performance of sort global known variables: time 2.91e-07/1.903, allocations: 0 / 0.9215 GB, free: 168.9 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01239/1.915, allocations: 4.038 MB / 0.9254 GB, free: 168.5 MB / 0.5138 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.001144/1.916, allocations: 340.6 kB / 0.9258 GB, free: 168.4 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01465/1.931, allocations: 11.51 MB / 0.937 GB, free: 166.1 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 7.664e-06/1.931, allocations: 0 / 0.937 GB, free: 166.1 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.00544/1.936, allocations: 4.733 MB / 0.9416 GB, free: 164.2 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006594/1.943, allocations: 1.475 MB / 0.9431 GB, free: 163.8 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04404/1.987, allocations: 36.85 MB / 0.9791 GB, free: 141.7 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009797/1.997, allocations: 11.26 MB / 0.9901 GB, free: 133 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.008378/2.005, allocations: 3.764 MB / 0.9937 GB, free: 130.5 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001434/2.007, allocations: 0.5181 MB / 0.9942 GB, free: 130 MB / 0.5138 GB Notification: Performance of SimCode: time 5.41e-07/2.007, allocations: 4 kB / 0.9942 GB, free: 130 MB / 0.5138 GB Notification: Performance of Templates: time 0.1347/2.141, allocations: 100.9 MB / 1.093 GB, free: 33.27 MB / 0.5138 GB make -j1 -f Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/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) Reference file matches