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.0008779/0.000878, allocations: 98.16 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009009/0.000901, allocations: 190.9 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.7 MB / 246.4 MB, free: 11.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002181/0.0002182, allocations: 4 kB / 307.1 MB, free: 1.18 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09392/0.09415, allocations: 51.52 MB / 358.6 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.1875/0.2817, allocations: 24.69 MB / 383.3 MB, free: 8.125 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01255/0.2943, allocations: 6.597 MB / 389.9 MB, free: 3.902 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005502/0.2998, allocations: 235 kB / 390.1 MB, free: 3.859 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005294/0.3052, allocations: 1.363 MB / 391.5 MB, free: 3.188 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008274/0.3135, allocations: 2.104 MB / 393.6 MB, free: 1.922 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004937/0.3184, allocations: 1.521 MB / 395.1 MB, free: 1.016 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0292/0.3476, allocations: 23.21 MB / 418.3 MB, free: 308 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07057/0.4182, allocations: 35.64 MB / 454 MB, free: 12.55 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01089/0.4292, allocations: 6.756 MB / 460.7 MB, free: 5.773 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01259/0.4418, allocations: 7.755 MB / 468.5 MB, free: 13.99 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00337/0.4452, allocations: 1.141 MB / 469.6 MB, free: 12.85 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006029/0.4512, allocations: 1.402 MB / 471 MB, free: 11.45 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004251/0.4555, allocations: 3.208 MB / 474.2 MB, free: 8.227 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006205/0.4617, allocations: 3.595 MB / 477.8 MB, free: 4.617 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03303/0.4948, allocations: 33.26 MB / 0.4991 GB, free: 3.266 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.4948, allocations: 0 / 0.4991 GB, free: 3.266 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.305e-06/0.4948, allocations: 3.938 kB / 0.4991 GB, free: 3.262 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0009998/0.4958, allocations: 0 / 0.4991 GB, free: 3.262 MB / 414.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.04821/0.544, allocations: 18.25 MB / 0.517 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.5441, allocations: 8.031 kB / 0.517 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04404/0.5881, allocations: 8.388 MB / 0.5252 GB, free: 8.461 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3743/0.9624, allocations: 11.18 MB / 0.5361 GB, free: 109.2 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001278/0.9637, allocations: 1.336 MB / 0.5374 GB, free: 109.2 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00544/0.9692, allocations: 1.745 MB / 0.5391 GB, free: 108.6 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06572/1.035, allocations: 28.62 MB / 0.567 GB, free: 97.54 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004393/1.035, allocations: 22.45 kB / 0.567 GB, free: 97.54 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003823/1.039, allocations: 0.7245 MB / 0.5678 GB, free: 96.97 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006644/1.04, allocations: 0.8645 MB / 0.5686 GB, free: 96.88 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0429/1.083, allocations: 24.67 MB / 0.5927 GB, free: 74.93 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1193/1.202, allocations: 88.61 MB / 0.6792 GB, free: 1.074 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02864/1.231, allocations: 35.15 MB / 0.7136 GB, free: 10.64 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008769/1.24, allocations: 5.345 MB / 0.7188 GB, free: 5.277 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006097/1.24, allocations: 292.5 kB / 0.7191 GB, free: 4.969 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.29e-05/1.24, allocations: 99.06 kB / 0.7191 GB, free: 4.859 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=589): time 7.514e-06/1.24, allocations: 0 / 0.7191 GB, free: 4.859 MB / 0.4982 GB Notification: Performance of matching and sorting (n=589): time 0.4257/1.666, allocations: 14.51 MB / 0.7333 GB, free: 155.4 MB / 0.4983 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.678e-05/1.666, allocations: 137.5 kB / 0.7335 GB, free: 155.3 MB / 0.4983 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009107/1.675, allocations: 6.376 MB / 0.7397 GB, free: 153.2 MB / 0.4983 GB Notification: Performance of collectPreVariables (initialization): time 0.0008036/1.676, allocations: 121 kB / 0.7398 GB, free: 153.1 MB / 0.4983 GB Notification: Performance of collectInitialEqns (initialization): time 0.00359/1.68, allocations: 7.598 MB / 0.7472 GB, free: 147.6 MB / 0.4983 GB Notification: Performance of collectInitialBindings (initialization): time 0.001934/1.682, allocations: 2.045 MB / 0.7492 GB, free: 146 MB / 0.4983 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005003/1.682, allocations: 209.8 kB / 0.7494 GB, free: 145.9 MB / 0.4983 GB Notification: Performance of setup shared object (initialization): time 0.0004166/1.683, allocations: 0.7403 MB / 0.7501 GB, free: 145.4 MB / 0.4983 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006114/1.689, allocations: 4.774 MB / 0.7548 GB, free: 143.6 MB / 0.4983 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007895/1.697, allocations: 9.506 MB / 0.7641 GB, free: 135.5 MB / 0.4983 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008695/1.705, allocations: 7.169 MB / 0.7711 GB, free: 132.4 MB / 0.4983 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001105/1.705, allocations: 45.88 kB / 0.7711 GB, free: 132.4 MB / 0.4983 GB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.02352/1.729, allocations: 15.45 MB / 0.7862 GB, free: 126.2 MB / 0.4983 GB Notification: Performance of prepare postOptimizeDAE: time 0.000161/1.729, allocations: 85.75 kB / 0.7863 GB, free: 126.2 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003077/1.73, allocations: 156 kB / 0.7864 GB, free: 126.2 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005249/1.735, allocations: 1.678 MB / 0.7881 GB, free: 125.9 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0077/1.743, allocations: 2.351 MB / 0.7904 GB, free: 125.6 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01348/1.756, allocations: 10.84 MB / 0.801 GB, free: 116.1 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008396/1.764, allocations: 1.347 MB / 0.8023 GB, free: 114.8 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001844/1.766, allocations: 0.5265 MB / 0.8028 GB, free: 114.3 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,75.0%) 80} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01201/1.778, allocations: 7.15 MB / 0.8098 GB, free: 107.7 MB / 0.4983 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001451/1.78, allocations: 0.6133 MB / 0.8104 GB, free: 107.1 MB / 0.4983 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01574/1.796, allocations: 10.26 MB / 0.8204 GB, free: 96.75 MB / 0.4983 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009681/1.805, allocations: 7.889 MB / 0.8281 GB, free: 88.78 MB / 0.4983 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.639e-05/1.805, allocations: 18.17 kB / 0.8281 GB, free: 88.77 MB / 0.4983 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.351e-05/1.805, allocations: 27.89 kB / 0.8281 GB, free: 88.74 MB / 0.4983 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03614/1.841, allocations: 26.44 MB / 0.854 GB, free: 61.79 MB / 0.4983 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.219e-05/1.842, allocations: 8.875 kB / 0.854 GB, free: 61.79 MB / 0.4983 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003475/1.845, allocations: 1.006 MB / 0.855 GB, free: 60.78 MB / 0.4983 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004404/1.849, allocations: 1.464 MB / 0.8564 GB, free: 59.31 MB / 0.4983 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005624/1.85, allocations: 136 kB / 0.8565 GB, free: 59.18 MB / 0.4983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01106/1.861, allocations: 10.41 MB / 0.8667 GB, free: 48.65 MB / 0.4983 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/1.861, allocations: 11.94 kB / 0.8667 GB, free: 48.64 MB / 0.4983 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01649/1.878, allocations: 14.32 MB / 0.8807 GB, free: 33.96 MB / 0.4983 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003549/1.881, allocations: 1.456 MB / 0.8821 GB, free: 32.48 MB / 0.4983 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001165/1.882, allocations: 108 kB / 0.8822 GB, free: 32.38 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002694/1.885, allocations: 331.7 kB / 0.8825 GB, free: 32.05 MB / 0.4983 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006577/1.886, allocations: 404.5 kB / 0.8829 GB, free: 31.65 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000298/1.886, allocations: 168 kB / 0.8831 GB, free: 31.49 MB / 0.4983 GB Notification: Performance of sorting global known variables: time 0.005582/1.892, allocations: 4.258 MB / 0.8872 GB, free: 27.25 MB / 0.4983 GB Notification: Performance of sort global known variables: time 2.4e-07/1.892, allocations: 0 / 0.8872 GB, free: 27.25 MB / 0.4983 GB Notification: Performance of remove unused functions: time 0.01156/1.903, allocations: 4.039 MB / 0.8912 GB, free: 23.2 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,77.8%) 80} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001124/1.904, allocations: 319.6 kB / 0.8915 GB, free: 22.89 MB / 0.4983 GB Notification: Performance of simCode: created initialization part: time 0.01573/1.92, allocations: 11.45 MB / 0.9026 GB, free: 11.4 MB / 0.4983 GB Notification: Performance of simCode: created event and clocks part: time 1.284e-05/1.92, allocations: 3.5 kB / 0.9027 GB, free: 11.4 MB / 0.4983 GB Notification: Performance of simCode: created simulation system equations: time 0.2136/2.134, allocations: 4.722 MB / 0.9073 GB, free: 155.9 MB / 0.4983 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007273/2.141, allocations: 1.492 MB / 0.9087 GB, free: 155.9 MB / 0.4983 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05007/2.191, allocations: 35.33 MB / 0.9432 GB, free: 140.9 MB / 0.4983 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01245/2.204, allocations: 11.26 MB / 0.9542 GB, free: 136.9 MB / 0.4983 GB Notification: Performance of simCode: alias equations: time 0.009052/2.213, allocations: 3.767 MB / 0.9579 GB, free: 136.5 MB / 0.4983 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001456/2.214, allocations: 0.5157 MB / 0.9584 GB, free: 136.5 MB / 0.4983 GB Notification: Performance of SimCode: time 8.32e-07/2.214, allocations: 0 / 0.9584 GB, free: 136.5 MB / 0.4983 GB Notification: Performance of Templates: time 0.1383/2.353, allocations: 97.26 MB / 1.053 GB, free: 42.68 MB / 0.4983 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