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.001139/0.001139, allocations: 110.8 kB / 17.29 MB, free: 6.211 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.001206/0.001206, allocations: 197.3 kB / 18.21 MB, free: 5.289 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.331/1.331, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009856/0.0009856, allocations: 47.27 kB / 300.8 MB, free: 6.199 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09166/0.09266, allocations: 49.45 MB / 350.2 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.1917/0.2844, allocations: 28.03 MB / 378.3 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01448/0.2989, allocations: 7.032 MB / 385.3 MB, free: 7.238 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00675/0.3057, allocations: 252.9 kB / 385.6 MB, free: 7.188 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02488/0.3307, allocations: 12.46 MB / 398 MB, free: 1.477 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009949/0.3406, allocations: 2.38 MB / 400.4 MB, free: 15.61 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006264/0.3469, allocations: 1.711 MB / 402.1 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02217/0.3691, allocations: 17.95 MB / 420 MB, free: 276 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.08591/0.4551, allocations: 51.64 MB / 471.7 MB, free: 12.42 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01878/0.4739, allocations: 10.07 MB / 481.8 MB, free: 2.336 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01988/0.4938, allocations: 11.15 MB / 492.9 MB, free: 7.148 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.008862/0.5027, allocations: 2.918 MB / 495.8 MB, free: 4.23 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0114/0.5142, allocations: 3.172 MB / 499 MB, free: 1.059 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.009183/0.5234, allocations: 5.503 MB / 0.4927 GB, free: 11.54 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01949/0.5429, allocations: 10.83 MB / 0.5032 GB, free: 0.6758 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4087/0.9516, allocations: 34.41 MB / 0.5369 GB, free: 82.23 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.9517, allocations: 0.5938 kB / 0.5369 GB, free: 82.23 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.9517, allocations: 0 / 0.5369 GB, free: 82.23 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.001326/0.953, allocations: 1 kB / 0.5369 GB, free: 82.23 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.07237/1.025, allocations: 22.04 MB / 0.5584 GB, free: 70.03 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/1.025, allocations: 11.48 kB / 0.5584 GB, free: 70.02 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0459/1.071, allocations: 8.331 MB / 0.5665 GB, free: 66.11 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02461/1.096, allocations: 11.26 MB / 0.5775 GB, free: 55.38 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001201/1.097, allocations: 1.332 MB / 0.5788 GB, free: 54.05 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009503/1.107, allocations: 1.753 MB / 0.5805 GB, free: 52.31 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08422/1.191, allocations: 28.77 MB / 0.6086 GB, free: 23.5 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008577/1.192, allocations: 19.81 kB / 0.6086 GB, free: 23.48 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009738/1.202, allocations: 0.7237 MB / 0.6093 GB, free: 22.77 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006997/1.202, allocations: 0.8635 MB / 0.6102 GB, free: 21.91 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05647/1.259, allocations: 24.82 MB / 0.6344 GB, free: 13.06 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3753/1.634, allocations: 88.03 MB / 0.7204 GB, free: 137.2 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02272/1.657, allocations: 35.2 MB / 0.7548 GB, free: 109.7 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007797/1.665, allocations: 5.38 MB / 0.76 GB, free: 109.7 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005572/1.665, allocations: 205.6 kB / 0.7602 GB, free: 109.6 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.484e-05/1.666, allocations: 94.88 kB / 0.7603 GB, free: 109.5 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=589): time 7.845e-06/1.666, allocations: 0 / 0.7603 GB, free: 109.5 MB / 0.4982 GB Notification: Performance of matching and sorting (n=589): time 0.03203/1.698, allocations: 14.81 MB / 0.7748 GB, free: 108.7 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001116/1.698, allocations: 140.8 kB / 0.7749 GB, free: 108.6 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009907/1.708, allocations: 6.419 MB / 0.7812 GB, free: 108.2 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.001118/1.709, allocations: 120.8 kB / 0.7813 GB, free: 108.2 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.004308/1.713, allocations: 7.593 MB / 0.7887 GB, free: 103.9 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.00233/1.715, allocations: 2.051 MB / 0.7907 GB, free: 102.6 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002915/1.718, allocations: 2.101 MB / 0.7928 GB, free: 102.4 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 5.037e-05/1.718, allocations: 305.1 kB / 0.7931 GB, free: 102.1 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005864/1.724, allocations: 4.809 MB / 0.7978 GB, free: 101.2 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009234/1.734, allocations: 9.546 MB / 0.8071 GB, free: 93.15 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01582/1.749, allocations: 15.46 MB / 0.8222 GB, free: 78.98 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001975/1.75, allocations: 44 kB / 0.8222 GB, free: 78.94 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.03047/1.78, allocations: 15.55 MB / 0.8374 GB, free: 63.31 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003211/1.78, allocations: 72 kB / 0.8375 GB, free: 63.24 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0004737/1.781, allocations: 160 kB / 0.8376 GB, free: 63.09 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006227/1.787, allocations: 1.672 MB / 0.8393 GB, free: 61.41 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008709/1.796, allocations: 2.347 MB / 0.8415 GB, free: 59.06 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0143/1.81, allocations: 11.6 MB / 0.8529 GB, free: 47.34 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009123/1.819, allocations: 1.351 MB / 0.8542 GB, free: 45.97 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00197/1.821, allocations: 0.5312 MB / 0.8547 GB, free: 45.44 MB / 0.4982 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.01211/1.834, allocations: 7.149 MB / 0.8617 GB, free: 38.27 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001473/1.835, allocations: 0.6133 MB / 0.8623 GB, free: 37.65 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01338/1.848, allocations: 10.29 MB / 0.8723 GB, free: 27.25 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009396/1.858, allocations: 7.935 MB / 0.8801 GB, free: 19.23 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.978e-05/1.858, allocations: 12 kB / 0.8801 GB, free: 19.22 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.251e-05/1.858, allocations: 31.88 kB / 0.8801 GB, free: 19.19 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2815/2.139, allocations: 26.24 MB / 0.9058 GB, free: 156 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.789e-05/2.14, allocations: 8.625 kB / 0.9058 GB, free: 156 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004208/2.144, allocations: 1.007 MB / 0.9068 GB, free: 155.9 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005295/2.149, allocations: 1.475 MB / 0.9082 GB, free: 155.9 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001083/2.15, allocations: 123.7 kB / 0.9083 GB, free: 155.9 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01318/2.163, allocations: 11.16 MB / 0.9192 GB, free: 152.5 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.565e-06/2.163, allocations: 15.72 kB / 0.9192 GB, free: 152.5 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01934/2.183, allocations: 14.37 MB / 0.9333 GB, free: 146.3 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003489/2.186, allocations: 1.455 MB / 0.9347 GB, free: 145.5 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0013/2.188, allocations: 110.5 kB / 0.9348 GB, free: 145.4 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003292/2.191, allocations: 325.8 kB / 0.9351 GB, free: 145.4 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008209/2.192, allocations: 399.6 kB / 0.9355 GB, free: 145.3 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003365/2.192, allocations: 168.6 kB / 0.9356 GB, free: 145.3 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.006508/2.199, allocations: 4.308 MB / 0.9398 GB, free: 143.8 MB / 0.4982 GB Notification: Performance of sort global known variables: time 2.11e-07/2.199, allocations: 3.469 kB / 0.9398 GB, free: 143.8 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.01321/2.212, allocations: 4.038 MB / 0.9438 GB, free: 142.5 MB / 0.4982 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.001651/2.214, allocations: 333.6 kB / 0.9441 GB, free: 142.2 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.0531/2.267, allocations: 27.27 MB / 0.9707 GB, free: 117.5 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.27e-05/2.267, allocations: 0 / 0.9707 GB, free: 117.5 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.006902/2.274, allocations: 4.726 MB / 0.9754 GB, free: 113.4 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008281/2.282, allocations: 1.566 MB / 0.9769 GB, free: 112.1 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04723/2.329, allocations: 36.24 MB / 1.012 GB, free: 78.45 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0112/2.34, allocations: 10.9 MB / 1.023 GB, free: 68.71 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00224/2.343, allocations: 0.5736 MB / 1.023 GB, free: 68.14 MB / 0.4982 GB Notification: Performance of SimCode: time 9.02e-07/2.343, allocations: 0 / 1.023 GB, free: 68.14 MB / 0.4982 GB Notification: Performance of Templates: time 0.8176/3.16, allocations: 281.7 MB / 1.299 GB, free: 184.3 MB / 0.545 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/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