Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.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.Machines.Examples.Transformers.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|// aimc.i_0_s|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer") translateModel(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|// aimc.i_0_s|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001066, allocations: 113.8 kB / 17.07 MB, free: 5.969 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.001081/0.001081, allocations: 190.8 kB / 18 MB, free: 5.055 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.357/1.357, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 47.91 kB / 351.3 MB, free: 3.191 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.2972, allocations: 49.43 MB / 400.8 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.0148/0.3121, allocations: 12.89 MB / 413.7 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.009111/0.3212, allocations: 4.179 MB / 417.8 MB, free: 7.715 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002918/0.3242, allocations: 79.69 kB / 417.9 MB, free: 7.637 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003263/0.3275, allocations: 0.9704 MB / 418.9 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004468/0.332, allocations: 1.176 MB / 420.1 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001703/0.3338, allocations: 0.511 MB / 420.6 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005667/0.3394, allocations: 4.629 MB / 425.2 MB, free: 328 kB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005112/0.3446, allocations: 3.694 MB / 428.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00415/0.3487, allocations: 2.133 MB / 431 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004454/0.3532, allocations: 2.553 MB / 433.6 MB, free: 7.867 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001707/0.355, allocations: 0.5547 MB / 434.1 MB, free: 7.312 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002342/0.3573, allocations: 0.6366 MB / 434.8 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002463/0.3598, allocations: 1.519 MB / 436.3 MB, free: 5.152 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005383/0.3652, allocations: 2.481 MB / 438.8 MB, free: 2.66 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01293/0.3782, allocations: 7.439 MB / 446.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.3782, allocations: 4 kB / 446.2 MB, free: 11.19 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3783, allocations: 0 / 446.2 MB, free: 11.19 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002928/0.3786, allocations: 0 / 446.2 MB, free: 11.19 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 934 * Number of variables: 934 Notification: Performance of Generate backend data structure: time 0.0199/0.3985, allocations: 4.811 MB / 451 MB, free: 6.309 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.827e-05/0.3986, allocations: 11.89 kB / 451 MB, free: 6.297 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003275/0.4019, allocations: 0.5137 MB / 451.6 MB, free: 5.781 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006926/0.4088, allocations: 2.585 MB / 454.1 MB, free: 3.148 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003086/0.4092, allocations: 267 kB / 454.4 MB, free: 2.887 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001304/0.4105, allocations: 355.9 kB / 454.7 MB, free: 2.539 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01259/0.4231, allocations: 5.032 MB / 459.8 MB, free: 13.44 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001483/0.4233, allocations: 15.88 kB / 459.8 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009267/0.4242, allocations: 144 kB / 459.9 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001991/0.4244, allocations: 183.1 kB / 460.1 MB, free: 13.11 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008923/0.4334, allocations: 4.294 MB / 464.4 MB, free: 8.805 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02781/0.4612, allocations: 14.76 MB / 479.2 MB, free: 9.719 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005067/0.4663, allocations: 4.194 MB / 483.4 MB, free: 5.23 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003336/0.4697, allocations: 1.987 MB / 485.3 MB, free: 3.242 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002995/0.47, allocations: 139 kB / 485.5 MB, free: 3.086 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.266e-05/0.4701, allocations: 52.56 kB / 485.5 MB, free: 3.027 MB / 398.1 MB Notification: Performance of pre-optimization done (n=198): time 3.506e-06/0.4701, allocations: 0 / 485.5 MB, free: 3.027 MB / 398.1 MB Notification: Performance of matching and sorting (n=218): time 0.01967/0.4898, allocations: 10.02 MB / 495.5 MB, free: 8.906 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/0.4899, allocations: 77.41 kB / 495.6 MB, free: 8.816 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00351/0.4934, allocations: 2.502 MB / 498.1 MB, free: 6.293 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000198/0.4936, allocations: 61.7 kB / 498.2 MB, free: 6.227 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001106/0.4947, allocations: 1.654 MB / 499.8 MB, free: 4.555 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006218/0.4953, allocations: 0.7668 MB / 0.4889 GB, free: 3.781 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006736/0.496, allocations: 424.4 kB / 0.4893 GB, free: 3.359 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 8.528e-05/0.4961, allocations: 309.1 kB / 0.4896 GB, free: 3.055 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001891/0.498, allocations: 1.297 MB / 0.4908 GB, free: 1.754 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002296/0.5003, allocations: 1.782 MB / 0.4926 GB, free: 15.78 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004296/0.5046, allocations: 3.208 MB / 0.4957 GB, free: 12.39 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.699e-06/0.5046, allocations: 8 kB / 0.4957 GB, free: 12.39 MB / 430.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006655/0.5113, allocations: 4.08 MB / 0.4997 GB, free: 8.281 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.591e-05/0.5114, allocations: 12 kB / 0.4997 GB, free: 8.27 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.228e-05/0.5114, allocations: 12.47 kB / 0.4997 GB, free: 8.258 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002757/0.5142, allocations: 0.8794 MB / 0.5006 GB, free: 7.363 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002088/0.5163, allocations: 0.5227 MB / 0.5011 GB, free: 6.84 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009782/0.5261, allocations: 9.491 MB / 0.5104 GB, free: 12.93 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001978/0.5281, allocations: 115.9 kB / 0.5105 GB, free: 12.82 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000195/0.5283, allocations: 91.92 kB / 0.5106 GB, free: 12.73 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,25,77.8%), (2,12,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001984/0.5303, allocations: 1.214 MB / 0.5118 GB, free: 11.51 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000621/0.5309, allocations: 290.2 kB / 0.512 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005952/0.5369, allocations: 3.715 MB / 0.5157 GB, free: 7.477 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.717e-05/0.5369, allocations: 24 kB / 0.5157 GB, free: 7.453 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.065e-05/0.5369, allocations: 4 kB / 0.5157 GB, free: 7.449 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.027e-05/0.5369, allocations: 12.05 kB / 0.5157 GB, free: 7.438 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01246/0.5494, allocations: 8.017 MB / 0.5235 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.426e-06/0.5494, allocations: 0 / 0.5235 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001622/0.5511, allocations: 391.8 kB / 0.5239 GB, free: 14.92 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002938/0.554, allocations: 0.9276 MB / 0.5248 GB, free: 13.98 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001511/0.5542, allocations: 59.91 kB / 0.5249 GB, free: 13.92 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01102/0.5652, allocations: 11.1 MB / 0.5357 GB, free: 2.254 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.745e-06/0.5653, allocations: 4 kB / 0.5357 GB, free: 2.25 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2193/0.7846, allocations: 5.521 MB / 0.5411 GB, free: 128.3 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001253/0.7859, allocations: 0.6454 MB / 0.5417 GB, free: 128.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003306/0.7862, allocations: 48.06 kB / 0.5418 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001247/0.7875, allocations: 117.3 kB / 0.5419 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003357/0.7878, allocations: 175.7 kB / 0.5421 GB, free: 128 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001166/0.7879, allocations: 60.03 kB / 0.5421 GB, free: 128 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001945/0.7899, allocations: 1.735 MB / 0.5438 GB, free: 127.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7899, allocations: 0.75 kB / 0.5438 GB, free: 127.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00202/0.7919, allocations: 0.7941 MB / 0.5446 GB, free: 127.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,25,88.9%), (2,12,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000498/0.7924, allocations: 241.6 kB / 0.5448 GB, free: 127.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004677/0.7971, allocations: 3.902 MB / 0.5486 GB, free: 125.4 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/0.7972, allocations: 6.5 kB / 0.5486 GB, free: 125.4 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002974/0.8001, allocations: 2.477 MB / 0.551 GB, free: 124.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003375/0.8035, allocations: 0.7852 MB / 0.5518 GB, free: 123.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01057/0.8141, allocations: 7.841 MB / 0.5595 GB, free: 118.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001892/0.816, allocations: 2.776 MB / 0.5622 GB, free: 115.9 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001902/0.8179, allocations: 0.6866 MB / 0.5629 GB, free: 115.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000526/0.8185, allocations: 179.4 kB / 0.563 GB, free: 115.1 MB / 462.1 MB Notification: Performance of SimCode: time 1.353e-06/0.8185, allocations: 0 / 0.563 GB, free: 115.1 MB / 462.1 MB Notification: Performance of Templates: time 0.05764/0.8761, allocations: 44.62 MB / 0.6066 GB, free: 71.01 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/Transformers/IMC_Transformer/IMC_Transformer.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches