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.0009584/0.0009585, allocations: 93.83 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001045/0.001045, allocations: 206.1 kB / 18.93 MB, free: 4.848 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.7 MB / 247.5 MB, free: 11.4 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002109/0.0002109, allocations: 4 kB / 308.4 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0898/0.09003, allocations: 51.53 MB / 359.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.2015/0.2916, allocations: 26.73 MB / 386.6 MB, free: 6.105 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01471/0.3064, allocations: 7.095 MB / 393.7 MB, free: 1.973 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006702/0.3131, allocations: 244.5 kB / 394 MB, free: 1.922 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006561/0.3197, allocations: 1.955 MB / 395.9 MB, free: 1.066 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01109/0.3308, allocations: 2.246 MB / 398.2 MB, free: 15.69 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006471/0.3373, allocations: 1.89 MB / 400.1 MB, free: 14.46 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02135/0.3587, allocations: 17.59 MB / 417.7 MB, free: 1.992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07863/0.4373, allocations: 43.61 MB / 461.3 MB, free: 6.203 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0121/0.4495, allocations: 6.783 MB / 468.1 MB, free: 15.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01247/0.462, allocations: 8.137 MB / 476.2 MB, free: 7.234 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003614/0.4656, allocations: 1.145 MB / 477.3 MB, free: 6.09 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006309/0.472, allocations: 1.418 MB / 478.8 MB, free: 4.672 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005244/0.4773, allocations: 3.269 MB / 482 MB, free: 1.391 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01458/0.4919, allocations: 8.395 MB / 490.4 MB, free: 8.949 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03328/0.5252, allocations: 33.28 MB / 0.5114 GB, free: 7.582 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.5252, allocations: 7.938 kB / 0.5114 GB, free: 7.574 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.477e-06/0.5252, allocations: 0 / 0.5114 GB, free: 7.574 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.001043/0.5263, allocations: 0 / 0.5114 GB, free: 7.574 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.04996/0.5763, allocations: 18.08 MB / 0.5291 GB, free: 5.375 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.5763, allocations: 8.031 kB / 0.5291 GB, free: 5.367 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.3744/0.9508, allocations: 8.389 MB / 0.5373 GB, free: 114 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02224/0.9731, allocations: 11.29 MB / 0.5483 GB, free: 109 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001715/0.9748, allocations: 1.334 MB / 0.5496 GB, free: 108.4 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006793/0.9816, allocations: 1.75 MB / 0.5513 GB, free: 107.9 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06189/1.044, allocations: 28.77 MB / 0.5794 GB, free: 90.58 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005857/1.044, allocations: 23.73 kB / 0.5794 GB, free: 90.56 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004476/1.049, allocations: 0.7307 MB / 0.5802 GB, free: 89.84 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006259/1.049, allocations: 0.8648 MB / 0.581 GB, free: 88.98 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04648/1.096, allocations: 24.82 MB / 0.6052 GB, free: 64.14 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1388/1.235, allocations: 88.66 MB / 0.6918 GB, free: 6.008 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4084/1.643, allocations: 35.17 MB / 0.7262 GB, free: 156.5 MB / 0.4983 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01267/1.656, allocations: 5.342 MB / 0.7314 GB, free: 156.5 MB / 0.4983 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008225/1.657, allocations: 293.6 kB / 0.7317 GB, free: 156.3 MB / 0.4983 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.027e-05/1.657, allocations: 95.33 kB / 0.7318 GB, free: 156.2 MB / 0.4983 GB Notification: Performance of pre-optimization done (n=589): time 9.067e-06/1.657, allocations: 0 / 0.7318 GB, free: 156.2 MB / 0.4983 GB Notification: Performance of matching and sorting (n=589): time 0.0406/1.697, allocations: 14.85 MB / 0.7463 GB, free: 151.6 MB / 0.4983 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.107e-05/1.697, allocations: 141 kB / 0.7464 GB, free: 151.5 MB / 0.4983 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01008/1.708, allocations: 6.422 MB / 0.7527 GB, free: 149.3 MB / 0.4983 GB Notification: Performance of collectPreVariables (initialization): time 0.001019/1.709, allocations: 117.1 kB / 0.7528 GB, free: 149.2 MB / 0.4983 GB Notification: Performance of collectInitialEqns (initialization): time 0.003484/1.712, allocations: 7.6 MB / 0.7602 GB, free: 143.7 MB / 0.4983 GB Notification: Performance of collectInitialBindings (initialization): time 0.002335/1.714, allocations: 2.045 MB / 0.7622 GB, free: 142.2 MB / 0.4983 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001221/1.716, allocations: 0.8164 MB / 0.763 GB, free: 141.8 MB / 0.4983 GB Notification: Performance of setup shared object (initialization): time 4.521e-05/1.716, allocations: 301.1 kB / 0.7633 GB, free: 141.5 MB / 0.4983 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00661/1.722, allocations: 4.815 MB / 0.768 GB, free: 139.8 MB / 0.4983 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01049/1.733, allocations: 9.556 MB / 0.7773 GB, free: 131.7 MB / 0.4983 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01645/1.749, allocations: 15.46 MB / 0.7924 GB, free: 120.5 MB / 0.4983 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001465/1.749, allocations: 44.81 kB / 0.7925 GB, free: 120.5 MB / 0.4983 GB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.02529/1.775, allocations: 15.54 MB / 0.8076 GB, free: 108.6 MB / 0.4983 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001604/1.775, allocations: 79.94 kB / 0.8077 GB, free: 108.5 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002775/1.775, allocations: 157.2 kB / 0.8079 GB, free: 108.3 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005446/1.781, allocations: 1.671 MB / 0.8095 GB, free: 107.1 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007546/1.788, allocations: 2.349 MB / 0.8118 GB, free: 105 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01287/1.801, allocations: 10.87 MB / 0.8224 GB, free: 94.1 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008231/1.809, allocations: 1.35 MB / 0.8237 GB, free: 92.73 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001786/1.811, allocations: 0.5279 MB / 0.8242 GB, free: 92.21 MB / 0.4983 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.01251/1.824, allocations: 7.149 MB / 0.8312 GB, free: 85.03 MB / 0.4983 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001659/1.825, allocations: 0.6095 MB / 0.8318 GB, free: 84.41 MB / 0.4983 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01675/1.842, allocations: 10.29 MB / 0.8419 GB, free: 74.02 MB / 0.4983 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01085/1.853, allocations: 7.931 MB / 0.8496 GB, free: 66.01 MB / 0.4983 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.582e-05/1.853, allocations: 16 kB / 0.8496 GB, free: 65.99 MB / 0.4983 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.61e-05/1.853, allocations: 31.73 kB / 0.8496 GB, free: 65.96 MB / 0.4983 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04577/1.899, allocations: 26.48 MB / 0.8755 GB, free: 38.98 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.674e-05/1.899, allocations: 12.17 kB / 0.8755 GB, free: 38.96 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003797/1.903, allocations: 1.006 MB / 0.8765 GB, free: 37.96 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005067/1.908, allocations: 1.473 MB / 0.8779 GB, free: 36.48 MB / 0.4983 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006901/1.909, allocations: 124 kB / 0.8781 GB, free: 36.36 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01176/1.921, allocations: 10.43 MB / 0.8882 GB, free: 25.8 MB / 0.4983 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/1.921, allocations: 11.94 kB / 0.8883 GB, free: 25.79 MB / 0.4983 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01812/1.939, allocations: 14.38 MB / 0.9023 GB, free: 11.06 MB / 0.4983 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003099/1.942, allocations: 1.456 MB / 0.9037 GB, free: 9.574 MB / 0.4983 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001471/1.943, allocations: 112.8 kB / 0.9038 GB, free: 9.465 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003519/1.947, allocations: 323.6 kB / 0.9041 GB, free: 9.148 MB / 0.4983 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008655/1.948, allocations: 404.4 kB / 0.9045 GB, free: 8.75 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004203/1.948, allocations: 168 kB / 0.9047 GB, free: 8.586 MB / 0.4983 GB Notification: Performance of sorting global known variables: time 0.2329/2.181, allocations: 4.304 MB / 0.9089 GB, free: 142.8 MB / 0.4983 GB Notification: Performance of sort global known variables: time 1.212e-06/2.181, allocations: 0 / 0.9089 GB, free: 142.8 MB / 0.4983 GB Notification: Performance of remove unused functions: time 0.01404/2.195, allocations: 4.035 MB / 0.9128 GB, free: 142.4 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.001536/2.197, allocations: 327.5 kB / 0.9131 GB, free: 142.3 MB / 0.4983 GB Notification: Performance of simCode: created initialization part: time 0.02109/2.218, allocations: 11.5 MB / 0.9244 GB, free: 140.3 MB / 0.4983 GB Notification: Performance of simCode: created event and clocks part: time 1.394e-05/2.218, allocations: 11.83 kB / 0.9244 GB, free: 140.3 MB / 0.4983 GB Notification: Performance of simCode: created simulation system equations: time 0.008256/2.226, allocations: 4.743 MB / 0.929 GB, free: 138.4 MB / 0.4983 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01388/2.24, allocations: 1.482 MB / 0.9305 GB, free: 137.9 MB / 0.4983 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0534/2.294, allocations: 36.27 MB / 0.9659 GB, free: 118.3 MB / 0.4983 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01604/2.31, allocations: 10.91 MB / 0.9765 GB, free: 112.7 MB / 0.4983 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003032/2.313, allocations: 0.5835 MB / 0.9771 GB, free: 112.2 MB / 0.4983 GB Notification: Performance of SimCode: time 1.482e-06/2.313, allocations: 0 / 0.9771 GB, free: 112.2 MB / 0.4983 GB Notification: Performance of Templates: time 0.5189/2.832, allocations: 279.3 MB / 1.25 GB, free: 35.71 MB / 0.5139 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