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.0007654/0.0007655, allocations: 91.98 kB / 17.31 MB, free: 6.109 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.0008221/0.0008222, allocations: 178.4 kB / 18.21 MB, free: 5.41 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.102/1.102, allocations: 223.3 MB / 242.3 MB, free: 224 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002055/0.0002056, allocations: 7.938 kB / 302.1 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06943/0.06965, allocations: 50.41 MB / 352.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench): time 0.1407/0.2103, allocations: 26.73 MB / 379.2 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009642/0.22, allocations: 7.01 MB / 386.2 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00185/0.2219, allocations: 249.4 kB / 386.5 MB, free: 7.387 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00278/0.2247, allocations: 1.958 MB / 388.4 MB, free: 6.555 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004678/0.2294, allocations: 2.4 MB / 390.8 MB, free: 5.594 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002829/0.2322, allocations: 1.705 MB / 392.5 MB, free: 4.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01362/0.2458, allocations: 17.4 MB / 410 MB, free: 10.48 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05703/0.3029, allocations: 43.6 MB / 453.6 MB, free: 416 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008596/0.3115, allocations: 6.788 MB / 460.3 MB, free: 9.605 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00809/0.3196, allocations: 8.137 MB / 468.5 MB, free: 1.434 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001383/0.321, allocations: 1.141 MB / 469.6 MB, free: 300 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002609/0.3236, allocations: 1.39 MB / 471 MB, free: 14.9 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00216/0.3258, allocations: 3.269 MB / 474.3 MB, free: 11.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006654/0.3324, allocations: 8.391 MB / 482.7 MB, free: 3.184 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02289/0.3553, allocations: 33.26 MB / 0.5038 GB, free: 1.828 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.3554, allocations: 4 kB / 0.5038 GB, free: 1.824 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3554, allocations: 0 / 0.5038 GB, free: 1.824 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005208/0.3559, allocations: 0 / 0.5038 GB, free: 1.824 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.2908/0.6467, allocations: 18.07 MB / 0.5215 GB, free: 102.9 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.6468, allocations: 10.06 kB / 0.5215 GB, free: 102.9 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0389/0.6857, allocations: 8.358 MB / 0.5297 GB, free: 102.1 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01602/0.7017, allocations: 11.29 MB / 0.5407 GB, free: 96.56 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005674/0.7023, allocations: 1.331 MB / 0.542 GB, free: 95.95 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002865/0.7052, allocations: 1.751 MB / 0.5437 GB, free: 95.37 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03575/0.7409, allocations: 28.76 MB / 0.5718 GB, free: 72.12 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002686/0.7412, allocations: 23.73 kB / 0.5718 GB, free: 72.09 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00148/0.7427, allocations: 0.7305 MB / 0.5725 GB, free: 71.38 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004574/0.7432, allocations: 0.8609 MB / 0.5734 GB, free: 70.51 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02978/0.773, allocations: 24.82 MB / 0.5976 GB, free: 45.66 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09089/0.8639, allocations: 88.27 MB / 0.6838 GB, free: 4.004 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2823/1.146, allocations: 35.16 MB / 0.7181 GB, free: 131 MB / 494.3 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007557/1.154, allocations: 5.352 MB / 0.7234 GB, free: 130.4 MB / 494.3 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003312/1.154, allocations: 202.8 kB / 0.7236 GB, free: 130.3 MB / 494.3 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.224e-05/1.154, allocations: 95.95 kB / 0.7237 GB, free: 130.2 MB / 494.3 MB Notification: Performance of pre-optimization done (n=589): time 7.093e-06/1.154, allocations: 0.9375 kB / 0.7237 GB, free: 130.2 MB / 494.3 MB Notification: Performance of matching and sorting (n=589): time 0.02658/1.181, allocations: 14.86 MB / 0.7382 GB, free: 125.6 MB / 494.3 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.063e-05/1.181, allocations: 144.7 kB / 0.7383 GB, free: 125.5 MB / 494.3 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006248/1.187, allocations: 6.421 MB / 0.7446 GB, free: 123.3 MB / 494.3 MB Notification: Performance of collectPreVariables (initialization): time 0.0002631/1.187, allocations: 119.9 kB / 0.7447 GB, free: 123.2 MB / 494.3 MB Notification: Performance of collectInitialEqns (initialization): time 0.002419/1.19, allocations: 7.592 MB / 0.7521 GB, free: 117.8 MB / 494.3 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009775/1.191, allocations: 2.053 MB / 0.7541 GB, free: 116.2 MB / 494.3 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000769/1.192, allocations: 0.8198 MB / 0.7549 GB, free: 115.8 MB / 494.3 MB Notification: Performance of setup shared object (initialization): time 3.04e-05/1.192, allocations: 301.1 kB / 0.7552 GB, free: 115.5 MB / 494.3 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004987/1.197, allocations: 4.812 MB / 0.7599 GB, free: 113.8 MB / 494.3 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005898/1.203, allocations: 9.549 MB / 0.7692 GB, free: 105.7 MB / 494.3 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01129/1.214, allocations: 15.46 MB / 0.7843 GB, free: 94.53 MB / 494.3 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-05/1.214, allocations: 48.64 kB / 0.7844 GB, free: 94.53 MB / 494.3 MB Notification: Performance of matching and sorting (n=1342) (initialization): time 0.0158/1.23, allocations: 15.54 MB / 0.7995 GB, free: 80.68 MB / 494.3 MB Notification: Performance of prepare postOptimizeDAE: time 6.288e-05/1.23, allocations: 79.94 kB / 0.7996 GB, free: 80.6 MB / 494.3 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-05/1.23, allocations: 160 kB / 0.7998 GB, free: 80.45 MB / 494.3 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004429/1.234, allocations: 1.669 MB / 0.8014 GB, free: 78.78 MB / 494.3 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005632/1.24, allocations: 2.351 MB / 0.8037 GB, free: 76.42 MB / 494.3 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01033/1.25, allocations: 10.86 MB / 0.8143 GB, free: 65.43 MB / 494.3 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004891/1.255, allocations: 1.35 MB / 0.8156 GB, free: 64.07 MB / 494.3 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000506/1.256, allocations: 0.5273 MB / 0.8161 GB, free: 63.54 MB / 494.3 MB 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.007154/1.263, allocations: 7.145 MB / 0.8231 GB, free: 56.38 MB / 494.3 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006446/1.264, allocations: 0.6133 MB / 0.8237 GB, free: 55.76 MB / 494.3 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01158/1.275, allocations: 10.3 MB / 0.8338 GB, free: 45.37 MB / 494.3 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008341/1.284, allocations: 7.927 MB / 0.8415 GB, free: 37.36 MB / 494.3 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.557e-05/1.284, allocations: 16 kB / 0.8415 GB, free: 37.34 MB / 494.3 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.849e-05/1.284, allocations: 35.88 kB / 0.8416 GB, free: 37.3 MB / 494.3 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02707/1.311, allocations: 26.24 MB / 0.8672 GB, free: 10.61 MB / 494.3 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/1.311, allocations: 8 kB / 0.8672 GB, free: 10.61 MB / 494.3 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003159/1.314, allocations: 1.006 MB / 0.8682 GB, free: 9.598 MB / 494.3 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004149/1.318, allocations: 1.47 MB / 0.8696 GB, free: 8.125 MB / 494.3 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000253/1.318, allocations: 128 kB / 0.8697 GB, free: 8 MB / 494.3 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01069/1.329, allocations: 10.44 MB / 0.8799 GB, free: 13.45 MB / 0.4983 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.699e-06/1.329, allocations: 15.94 kB / 0.8799 GB, free: 13.43 MB / 0.4983 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1749/1.504, allocations: 14.37 MB / 0.894 GB, free: 146.8 MB / 0.4983 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003007/1.507, allocations: 1.459 MB / 0.8954 GB, free: 146.7 MB / 0.4983 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001257/1.508, allocations: 112.1 kB / 0.8955 GB, free: 146.7 MB / 0.4983 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003178/1.511, allocations: 325.7 kB / 0.8958 GB, free: 146.7 MB / 0.4983 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008353/1.512, allocations: 403.5 kB / 0.8962 GB, free: 146.7 MB / 0.4983 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003137/1.513, allocations: 169.3 kB / 0.8964 GB, free: 146.7 MB / 0.4983 GB Notification: Performance of sorting global known variables: time 0.005726/1.518, allocations: 4.307 MB / 0.9006 GB, free: 146.5 MB / 0.4983 GB Notification: Performance of sort global known variables: time 2.31e-07/1.518, allocations: 0 / 0.9006 GB, free: 146.5 MB / 0.4983 GB Notification: Performance of remove unused functions: time 0.008515/1.527, allocations: 4.035 MB / 0.9045 GB, free: 145.6 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.0006572/1.528, allocations: 332.9 kB / 0.9048 GB, free: 145.4 MB / 0.4983 GB Notification: Performance of simCode: created initialization part: time 0.01242/1.54, allocations: 11.51 MB / 0.9161 GB, free: 141.1 MB / 0.4983 GB Notification: Performance of simCode: created event and clocks part: time 5.43e-06/1.54, allocations: 3.938 kB / 0.9161 GB, free: 141.1 MB / 0.4983 GB Notification: Performance of simCode: created simulation system equations: time 0.004599/1.545, allocations: 4.727 MB / 0.9207 GB, free: 139.2 MB / 0.4983 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01069/1.555, allocations: 1.489 MB / 0.9221 GB, free: 138.7 MB / 0.4983 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03367/1.589, allocations: 36.27 MB / 0.9576 GB, free: 119.1 MB / 0.4983 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007539/1.597, allocations: 10.91 MB / 0.9682 GB, free: 111.7 MB / 0.4983 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001901/1.598, allocations: 0.5725 MB / 0.9688 GB, free: 111.2 MB / 0.4983 GB Notification: Performance of SimCode: time 9.42e-07/1.598, allocations: 3.828 kB / 0.9688 GB, free: 111.2 MB / 0.4983 GB Notification: Performance of Templates: time 0.38/1.978, allocations: 279.4 MB / 1.242 GB, free: 13.88 MB / 0.5139 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/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_4.0.0_Modelica.Electrical.QuasiStatic.Machines.Examples.TransformerTestbench.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches