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.00132/0.00132, allocations: 118.2 kB / 17.79 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001507/0.001507, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.374/1.374, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 55.91 kB / 358.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2311/0.2323, allocations: 50.54 MB / 409.2 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.02801/0.2604, allocations: 28.62 MB / 437.9 MB, free: 4.863 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01463/0.275, allocations: 7.199 MB / 445.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007138/0.2822, allocations: 263.2 kB / 445.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02816/0.3104, allocations: 13.14 MB / 458.5 MB, free: 224 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009374/0.3198, allocations: 2.563 MB / 461 MB, free: 13.64 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006008/0.3259, allocations: 2.031 MB / 463.1 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02101/0.3469, allocations: 18.27 MB / 481.3 MB, free: 9.285 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.06622/0.4132, allocations: 44.45 MB / 0.5135 GB, free: 12.61 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01501/0.4282, allocations: 9.943 MB / 0.5232 GB, free: 2.652 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01598/0.4442, allocations: 11.06 MB / 0.534 GB, free: 7.555 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007014/0.4512, allocations: 2.922 MB / 0.5368 GB, free: 4.633 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008891/0.4602, allocations: 3.195 MB / 0.5399 GB, free: 1.438 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.4209/0.8811, allocations: 5.477 MB / 0.5453 GB, free: 59.69 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02522/0.9064, allocations: 10.82 MB / 0.5559 GB, free: 58.83 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03372/0.9401, allocations: 39.01 MB / 0.5939 GB, free: 38.61 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.9402, allocations: 4.656 kB / 0.594 GB, free: 38.61 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.9402, allocations: 0 / 0.594 GB, free: 38.61 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0009335/0.9411, allocations: 0.8125 kB / 0.594 GB, free: 38.61 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.06185/1.003, allocations: 21.95 MB / 0.6154 GB, free: 25.07 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/1.003, allocations: 7.719 kB / 0.6154 GB, free: 25.07 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04398/1.047, allocations: 8.356 MB / 0.6236 GB, free: 17.2 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02271/1.07, allocations: 11.62 MB / 0.6349 GB, free: 6.004 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001332/1.071, allocations: 1.344 MB / 0.6362 GB, free: 4.672 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008756/1.08, allocations: 1.75 MB / 0.6379 GB, free: 2.93 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08115/1.161, allocations: 28.72 MB / 0.666 GB, free: 6.172 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006521/1.162, allocations: 19.89 kB / 0.666 GB, free: 6.152 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006269/1.168, allocations: 0.7298 MB / 0.6667 GB, free: 5.434 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001137/1.169, allocations: 0.8415 MB / 0.6675 GB, free: 4.59 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06984/1.239, allocations: 24.79 MB / 0.6917 GB, free: 11.79 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3737/1.613, allocations: 87.27 MB / 0.777 GB, free: 143.7 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02025/1.633, allocations: 35.12 MB / 0.8113 GB, free: 116.2 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007646/1.641, allocations: 5.438 MB / 0.8166 GB, free: 116.2 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005262/1.641, allocations: 293.9 kB / 0.8168 GB, free: 116 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.242e-05/1.641, allocations: 90.64 kB / 0.8169 GB, free: 115.9 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=577): time 8.626e-06/1.641, allocations: 7.891 kB / 0.8169 GB, free: 115.9 MB / 0.5607 GB Notification: Performance of matching and sorting (n=577): time 0.03032/1.672, allocations: 14.72 MB / 0.8313 GB, free: 115.1 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.449e-05/1.672, allocations: 145.3 kB / 0.8315 GB, free: 115 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008734/1.681, allocations: 6.419 MB / 0.8377 GB, free: 113.2 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0007902/1.681, allocations: 123.2 kB / 0.8378 GB, free: 113.1 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.003662/1.685, allocations: 7.609 MB / 0.8453 GB, free: 106.9 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.002089/1.687, allocations: 2.014 MB / 0.8472 GB, free: 105.1 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002771/1.69, allocations: 2.082 MB / 0.8493 GB, free: 104 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 3.747e-05/1.69, allocations: 308.1 kB / 0.8496 GB, free: 103.7 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005669/1.696, allocations: 4.733 MB / 0.8542 GB, free: 101.1 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007548/1.703, allocations: 9.462 MB / 0.8634 GB, free: 92.13 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01373/1.717, allocations: 15.3 MB / 0.8784 GB, free: 75.29 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001212/1.717, allocations: 48 kB / 0.8784 GB, free: 75.24 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.02051/1.738, allocations: 15.37 MB / 0.8934 GB, free: 59.78 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.000118/1.738, allocations: 79.94 kB / 0.8935 GB, free: 59.7 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002101/1.738, allocations: 160 kB / 0.8937 GB, free: 59.55 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004762/1.743, allocations: 1.665 MB / 0.8953 GB, free: 57.88 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007207/1.75, allocations: 2.344 MB / 0.8976 GB, free: 55.53 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01225/1.762, allocations: 11.6 MB / 0.9089 GB, free: 43.8 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007628/1.77, allocations: 1.351 MB / 0.9102 GB, free: 42.44 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001424/1.771, allocations: 0.5273 MB / 0.9107 GB, free: 41.91 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.009718/1.781, allocations: 7.149 MB / 0.9177 GB, free: 34.75 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000935/1.782, allocations: 0.6133 MB / 0.9183 GB, free: 34.12 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01265/1.795, allocations: 10.1 MB / 0.9282 GB, free: 23.91 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009145/1.804, allocations: 7.762 MB / 0.9358 GB, free: 16.06 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.29e-05/1.804, allocations: 12 kB / 0.9358 GB, free: 16.05 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-05/1.804, allocations: 31.83 kB / 0.9358 GB, free: 16.02 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04253/1.847, allocations: 25.67 MB / 0.9609 GB, free: 6.098 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.882e-05/1.847, allocations: 8 kB / 0.9609 GB, free: 6.09 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004206/1.851, allocations: 1.01 MB / 0.9619 GB, free: 5.078 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005159/1.856, allocations: 1.461 MB / 0.9633 GB, free: 3.613 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008081/1.857, allocations: 128 kB / 0.9634 GB, free: 3.488 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2642/2.121, allocations: 11.14 MB / 0.9743 GB, free: 181.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.975e-06/2.121, allocations: 11.53 kB / 0.9743 GB, free: 181.6 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01758/2.139, allocations: 14.09 MB / 0.9881 GB, free: 176.8 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002632/2.141, allocations: 1.441 MB / 0.9895 GB, free: 175.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000782/2.142, allocations: 111 kB / 0.9896 GB, free: 175.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002548/2.145, allocations: 322.2 kB / 0.9899 GB, free: 175.8 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007628/2.145, allocations: 404.3 kB / 0.9903 GB, free: 175.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003246/2.146, allocations: 163.5 kB / 0.9904 GB, free: 175.7 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.00604/2.152, allocations: 4.306 MB / 0.9946 GB, free: 174.2 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.21e-07/2.152, allocations: 0 / 0.9946 GB, free: 174.2 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.01225/2.164, allocations: 4.032 MB / 0.9986 GB, free: 172.9 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.001472/2.166, allocations: 328.2 kB / 0.9989 GB, free: 172.7 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01715/2.183, allocations: 11.37 MB / 1.01 GB, free: 168.4 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.276e-05/2.183, allocations: 7.438 kB / 1.01 GB, free: 168.4 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006835/2.19, allocations: 4.644 MB / 1.015 GB, free: 166.5 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008637/2.198, allocations: 1.564 MB / 1.016 GB, free: 166 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05491/2.253, allocations: 29.28 MB / 1.045 GB, free: 141 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01951/2.273, allocations: 11.26 MB / 1.056 GB, free: 132.3 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.01/2.283, allocations: 3.769 MB / 1.059 GB, free: 129.3 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002252/2.285, allocations: 0.5111 MB / 1.06 GB, free: 128.8 MB / 0.5763 GB Notification: Performance of SimCode: time 1.193e-06/2.285, allocations: 4 kB / 1.06 GB, free: 128.8 MB / 0.5763 GB Notification: Performance of Templates: time 0.1494/2.435, allocations: 99.07 MB / 1.157 GB, free: 30.3 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/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_trunk_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches