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.001246/0.001246, allocations: 109.5 kB / 17.06 MB, free: 6.012 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.001256/0.001256, allocations: 191 kB / 18 MB, free: 5.094 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.388/1.388, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009663/0.0009663, allocations: 47.92 kB / 351.3 MB, free: 3.219 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2437/0.2447, allocations: 49.43 MB / 400.7 MB, free: 8.949 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.028/0.2727, allocations: 28.62 MB / 429.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01527/0.2881, allocations: 7.13 MB / 436.5 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004807/0.2929, allocations: 259.2 kB / 436.7 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02692/0.3199, allocations: 13.09 MB / 449.8 MB, free: 7.719 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009196/0.3291, allocations: 2.683 MB / 452.5 MB, free: 5.023 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005654/0.3348, allocations: 1.854 MB / 454.4 MB, free: 3.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01973/0.3545, allocations: 18.11 MB / 472.5 MB, free: 1.012 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0721/0.4267, allocations: 44.45 MB / 0.5048 GB, free: 4.336 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01397/0.4407, allocations: 9.952 MB / 0.5145 GB, free: 10.37 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0166/0.4573, allocations: 11.05 MB / 0.5253 GB, free: 15.28 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006652/0.464, allocations: 2.918 MB / 0.5282 GB, free: 12.36 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008645/0.4726, allocations: 3.168 MB / 0.5313 GB, free: 9.195 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007945/0.4806, allocations: 5.479 MB / 0.5366 GB, free: 3.703 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.4225/0.9031, allocations: 10.82 MB / 0.5472 GB, free: 59.5 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03944/0.9426, allocations: 38.99 MB / 0.5853 GB, free: 45.26 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.9427, allocations: 0 / 0.5853 GB, free: 45.26 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.9427, allocations: 0 / 0.5853 GB, free: 45.26 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001033/0.9437, allocations: 0 / 0.5853 GB, free: 45.26 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.0636/1.007, allocations: 21.93 MB / 0.6067 GB, free: 31.88 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/1.007, allocations: 11.55 kB / 0.6067 GB, free: 31.88 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04477/1.052, allocations: 8.332 MB / 0.6148 GB, free: 25.05 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02129/1.074, allocations: 11.62 MB / 0.6262 GB, free: 13.96 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001049/1.075, allocations: 1.345 MB / 0.6275 GB, free: 12.63 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006783/1.081, allocations: 1.762 MB / 0.6292 GB, free: 10.88 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08471/1.166, allocations: 28.7 MB / 0.6572 GB, free: 14.13 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009664/1.167, allocations: 19.91 kB / 0.6572 GB, free: 14.11 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007351/1.175, allocations: 0.7282 MB / 0.658 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009574/1.176, allocations: 0.8415 MB / 0.6588 GB, free: 12.55 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06137/1.237, allocations: 24.79 MB / 0.683 GB, free: 3.742 MB / 0.4982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4097/1.647, allocations: 86.87 MB / 0.7678 GB, free: 154.4 MB / 0.5607 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02187/1.669, allocations: 35.11 MB / 0.8021 GB, free: 126.9 MB / 0.5607 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007625/1.676, allocations: 5.446 MB / 0.8074 GB, free: 126.8 MB / 0.5607 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005287/1.677, allocations: 202 kB / 0.8076 GB, free: 126.7 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.38e-05/1.677, allocations: 96.17 kB / 0.8077 GB, free: 126.7 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=577): time 7.935e-06/1.677, allocations: 0 / 0.8077 GB, free: 126.7 MB / 0.5607 GB Notification: Performance of matching and sorting (n=577): time 0.02931/1.706, allocations: 14.73 MB / 0.8221 GB, free: 125.8 MB / 0.5607 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.963e-05/1.706, allocations: 136.2 kB / 0.8222 GB, free: 125.7 MB / 0.5607 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008962/1.715, allocations: 6.423 MB / 0.8285 GB, free: 125.3 MB / 0.5607 GB Notification: Performance of collectPreVariables (initialization): time 0.0009189/1.716, allocations: 122.2 kB / 0.8286 GB, free: 125.3 MB / 0.5607 GB Notification: Performance of collectInitialEqns (initialization): time 0.003155/1.719, allocations: 7.605 MB / 0.836 GB, free: 120.9 MB / 0.5607 GB Notification: Performance of collectInitialBindings (initialization): time 0.001692/1.721, allocations: 2.014 MB / 0.838 GB, free: 119.4 MB / 0.5607 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002806/1.724, allocations: 2.091 MB / 0.84 GB, free: 118.4 MB / 0.5607 GB Notification: Performance of setup shared object (initialization): time 4.238e-05/1.724, allocations: 301.1 kB / 0.8403 GB, free: 118.1 MB / 0.5607 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005853/1.73, allocations: 4.731 MB / 0.8449 GB, free: 115.7 MB / 0.5607 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007285/1.737, allocations: 9.467 MB / 0.8542 GB, free: 106.7 MB / 0.5607 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01458/1.752, allocations: 15.31 MB / 0.8691 GB, free: 90.34 MB / 0.5607 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001182/1.752, allocations: 48 kB / 0.8692 GB, free: 90.29 MB / 0.5607 GB Notification: Performance of matching and sorting (n=1330) (initialization): time 0.02055/1.773, allocations: 15.38 MB / 0.8842 GB, free: 74.83 MB / 0.5607 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001038/1.773, allocations: 72 kB / 0.8843 GB, free: 74.76 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002183/1.773, allocations: 164 kB / 0.8844 GB, free: 74.6 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005199/1.778, allocations: 1.653 MB / 0.886 GB, free: 72.94 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007705/1.786, allocations: 2.355 MB / 0.8883 GB, free: 70.58 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01328/1.799, allocations: 11.6 MB / 0.8997 GB, free: 58.85 MB / 0.5607 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00848/1.808, allocations: 1.35 MB / 0.901 GB, free: 57.48 MB / 0.5607 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001868/1.81, allocations: 0.5273 MB / 0.9015 GB, free: 56.96 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.01218/1.822, allocations: 7.141 MB / 0.9085 GB, free: 49.8 MB / 0.5607 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001448/1.823, allocations: 0.6134 MB / 0.9091 GB, free: 49.18 MB / 0.5607 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01505/1.838, allocations: 10.1 MB / 0.9189 GB, free: 38.96 MB / 0.5607 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009976/1.848, allocations: 7.765 MB / 0.9265 GB, free: 31.11 MB / 0.5607 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.363e-05/1.848, allocations: 15.75 kB / 0.9265 GB, free: 31.1 MB / 0.5607 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.851e-05/1.848, allocations: 31.88 kB / 0.9266 GB, free: 31.07 MB / 0.5607 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04563/1.894, allocations: 25.43 MB / 0.9514 GB, free: 5.453 MB / 0.5607 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.072e-05/1.894, allocations: 9.312 kB / 0.9514 GB, free: 5.445 MB / 0.5607 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003915/1.898, allocations: 1.007 MB / 0.9524 GB, free: 4.438 MB / 0.5607 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004785/1.903, allocations: 1.469 MB / 0.9538 GB, free: 2.965 MB / 0.5607 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007659/1.904, allocations: 120 kB / 0.954 GB, free: 2.848 MB / 0.5607 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01559/1.919, allocations: 11.15 MB / 0.9648 GB, free: 7.586 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.013e-05/1.919, allocations: 15.94 kB / 0.9649 GB, free: 7.57 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2964/2.216, allocations: 14.09 MB / 0.9786 GB, free: 185.7 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003341/2.219, allocations: 1.436 MB / 0.98 GB, free: 185.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001017/2.22, allocations: 114.3 kB / 0.9801 GB, free: 185.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002858/2.223, allocations: 320.1 kB / 0.9804 GB, free: 185.5 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007966/2.224, allocations: 403.7 kB / 0.9808 GB, free: 185.5 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003612/2.224, allocations: 164.1 kB / 0.981 GB, free: 185.5 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006651/2.231, allocations: 4.309 MB / 0.9852 GB, free: 185.3 MB / 0.5763 GB Notification: Performance of sort global known variables: time 3.21e-07/2.231, allocations: 2.469 kB / 0.9852 GB, free: 185.3 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.0109/2.242, allocations: 4.033 MB / 0.9891 GB, free: 184.3 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.00106/2.243, allocations: 329.2 kB / 0.9894 GB, free: 184.1 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01682/2.26, allocations: 11.36 MB / 1.001 GB, free: 180.8 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.602e-05/2.26, allocations: 3.438 kB / 1.001 GB, free: 180.8 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.007586/2.267, allocations: 4.644 MB / 1.005 GB, free: 178.9 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008572/2.276, allocations: 1.561 MB / 1.007 GB, free: 178.4 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05669/2.333, allocations: 29.28 MB / 1.035 GB, free: 160.4 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02027/2.353, allocations: 11.26 MB / 1.046 GB, free: 151.7 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.01041/2.363, allocations: 3.769 MB / 1.05 GB, free: 149.2 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002567/2.366, allocations: 0.5141 MB / 1.05 GB, free: 148.7 MB / 0.5763 GB Notification: Performance of SimCode: time 2.014e-06/2.366, allocations: 0 / 1.05 GB, free: 148.7 MB / 0.5763 GB Notification: Performance of Templates: time 0.1472/2.513, allocations: 99.2 MB / 1.147 GB, free: 51.76 MB / 0.5763 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/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_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches