Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00203/0.00203, allocations: 121.7 kB / 18.46 MB, free: 4.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.004197/0.004197, allocations: 208.8 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.477/2.477, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001978/0.001978, allocations: 59.89 kB / 359.4 MB, free: 12.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4109/0.4129, allocations: 50.54 MB / 409.9 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.04682/0.4597, allocations: 28.62 MB / 438.6 MB, free: 4.832 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02179/0.4816, allocations: 7.199 MB / 445.8 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007407/0.4891, allocations: 263.2 kB / 446 MB, free: 13.36 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0398/0.529, allocations: 13.09 MB / 459.1 MB, free: 240 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01417/0.5432, allocations: 2.527 MB / 461.6 MB, free: 13.7 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009459/0.5527, allocations: 2.036 MB / 463.7 MB, free: 11.67 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.03598/0.5887, allocations: 18.27 MB / 481.9 MB, free: 9.332 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1118/0.7006, allocations: 44.45 MB / 0.5141 GB, free: 12.66 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02223/0.7229, allocations: 9.953 MB / 0.5238 GB, free: 2.691 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02621/0.7491, allocations: 11.05 MB / 0.5346 GB, free: 7.594 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01034/0.7595, allocations: 2.922 MB / 0.5374 GB, free: 4.672 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01295/0.7725, allocations: 3.195 MB / 0.5405 GB, free: 1.48 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.6812/1.454, allocations: 5.472 MB / 0.5459 GB, free: 59.7 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03505/1.489, allocations: 10.83 MB / 0.5565 GB, free: 58.84 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05794/1.547, allocations: 39.02 MB / 0.5946 GB, free: 38.64 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.418e-06/1.547, allocations: 0.7812 kB / 0.5946 GB, free: 38.64 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.184e-06/1.547, allocations: 0 / 0.5946 GB, free: 38.64 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001248/1.548, allocations: 0.7812 kB / 0.5946 GB, free: 38.64 MB / 462.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.1053/1.654, allocations: 21.94 MB / 0.616 GB, free: 25.1 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.246e-05/1.654, allocations: 9.375 kB / 0.616 GB, free: 25.1 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09497/1.749, allocations: 8.352 MB / 0.6242 GB, free: 17.2 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05178/1.8, allocations: 11.62 MB / 0.6355 GB, free: 6.004 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001938/1.803, allocations: 1.343 MB / 0.6368 GB, free: 4.668 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01121/1.814, allocations: 1.757 MB / 0.6385 GB, free: 2.926 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1259/1.94, allocations: 28.72 MB / 0.6666 GB, free: 6.172 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009356/1.941, allocations: 15.91 kB / 0.6666 GB, free: 6.156 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007683/1.948, allocations: 0.7281 MB / 0.6673 GB, free: 5.438 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001487/1.95, allocations: 0.8453 MB / 0.6681 GB, free: 4.59 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09438/2.044, allocations: 24.79 MB / 0.6923 GB, free: 11.79 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7663/2.811, allocations: 87.28 MB / 0.7776 GB, free: 143.8 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.04695/2.858, allocations: 35.13 MB / 0.8119 GB, free: 116.4 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01686/2.875, allocations: 5.44 MB / 0.8172 GB, free: 116.3 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001402/2.876, allocations: 288.7 kB / 0.8175 GB, free: 116.1 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001475/2.876, allocations: 93.52 kB / 0.8175 GB, free: 116 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=577): time 1.68e-05/2.876, allocations: 0 / 0.8175 GB, free: 116 MB / 0.5607 GB Notification: Performance of matching and sorting (n=577): time 0.06434/2.941, allocations: 14.72 MB / 0.8319 GB, free: 115.2 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/2.941, allocations: 141.7 kB / 0.8321 GB, free: 115.1 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01712/2.958, allocations: 6.42 MB / 0.8383 GB, free: 113.3 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.001165/2.959, allocations: 119.3 kB / 0.8384 GB, free: 113.2 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.006152/2.965, allocations: 7.607 MB / 0.8459 GB, free: 106.9 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.002924/2.968, allocations: 2.014 MB / 0.8478 GB, free: 105.2 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00557/2.974, allocations: 2.086 MB / 0.8499 GB, free: 104 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.851e-05/2.974, allocations: 301.1 kB / 0.8502 GB, free: 103.7 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01168/2.986, allocations: 4.74 MB / 0.8548 GB, free: 101.1 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01516/3.001, allocations: 9.46 MB / 0.864 GB, free: 92.14 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02756/3.029, allocations: 15.31 MB / 0.879 GB, free: 75.25 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004497/3.029, allocations: 44 kB / 0.879 GB, free: 75.21 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.04861/3.078, allocations: 15.38 MB / 0.894 GB, free: 59.74 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001828/3.078, allocations: 76.5 kB / 0.8941 GB, free: 59.67 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003152/3.078, allocations: 160 kB / 0.8943 GB, free: 59.51 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009745/3.088, allocations: 1.66 MB / 0.8959 GB, free: 57.85 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01626/3.105, allocations: 2.351 MB / 0.8982 GB, free: 55.49 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02558/3.13, allocations: 11.6 MB / 0.9095 GB, free: 43.76 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01468/3.145, allocations: 1.339 MB / 0.9108 GB, free: 42.41 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003239/3.148, allocations: 0.5273 MB / 0.9113 GB, free: 41.88 MB / 0.5607 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.02016/3.168, allocations: 7.153 MB / 0.9183 GB, free: 34.71 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002096/3.171, allocations: 0.6172 MB / 0.9189 GB, free: 34.08 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02846/3.199, allocations: 10.1 MB / 0.9288 GB, free: 23.87 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02129/3.22, allocations: 7.762 MB / 0.9364 GB, free: 16.02 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.374e-05/3.22, allocations: 12.69 kB / 0.9364 GB, free: 16.01 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001536/3.221, allocations: 35.83 kB / 0.9364 GB, free: 15.98 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1027/3.323, allocations: 25.67 MB / 0.9615 GB, free: 6.059 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001912/3.324, allocations: 8 kB / 0.9615 GB, free: 6.051 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009623/3.333, allocations: 1.01 MB / 0.9625 GB, free: 5.039 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01035/3.344, allocations: 1.466 MB / 0.9639 GB, free: 3.57 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002234/3.346, allocations: 124 kB / 0.964 GB, free: 3.449 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5894/3.936, allocations: 11.13 MB / 0.9749 GB, free: 181.7 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.931e-05/3.936, allocations: 20 kB / 0.9749 GB, free: 181.7 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04454/3.98, allocations: 14.09 MB / 0.9887 GB, free: 176.9 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007312/3.988, allocations: 1.442 MB / 0.9901 GB, free: 176.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00282/3.991, allocations: 111.4 kB / 0.9902 GB, free: 176 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007262/3.998, allocations: 325.9 kB / 0.9905 GB, free: 175.9 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002195/4, allocations: 397.8 kB / 0.9909 GB, free: 175.9 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007593/4.001, allocations: 164.1 kB / 0.991 GB, free: 175.8 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.01259/4.014, allocations: 4.308 MB / 0.9952 GB, free: 174.3 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.452e-06/4.014, allocations: 0 / 0.9952 GB, free: 174.3 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.02649/4.04, allocations: 4.039 MB / 0.9992 GB, free: 173 MB / 0.5763 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.003208/4.044, allocations: 324.4 kB / 0.9995 GB, free: 172.8 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.03272/4.076, allocations: 11.37 MB / 1.011 GB, free: 168.5 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 3.59e-05/4.076, allocations: 9.438 kB / 1.011 GB, free: 168.5 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.01328/4.09, allocations: 4.634 MB / 1.015 GB, free: 166.7 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01876/4.109, allocations: 1.563 MB / 1.017 GB, free: 166.1 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1126/4.221, allocations: 28.68 MB / 1.045 GB, free: 141.6 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.05051/4.272, allocations: 10.9 MB / 1.055 GB, free: 133.1 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006255/4.278, allocations: 0.58 MB / 1.056 GB, free: 132.5 MB / 0.5763 GB Notification: Performance of SimCode: time 3.948e-06/4.278, allocations: 0 / 1.056 GB, free: 132.5 MB / 0.5763 GB Notification: Performance of Templates: time 1.072/5.351, allocations: 284.3 MB / 1.334 GB, free: 55.48 MB / 0.5763 GB make -j1 -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.makefile (rm -f Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe >> ../files/Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.sim & ./Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches