Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.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.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 93.47 kB / 17.31 MB, free: 6.535 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.001119/0.001119, allocations: 175.4 kB / 18.21 MB, free: 5.684 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.3/1.3, allocations: 223.3 MB / 242.3 MB, free: 192 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000223/0.000223, allocations: 8 kB / 302.1 MB, free: 6.121 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07234/0.07258, allocations: 50.41 MB / 352.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer): time 0.01119/0.0838, allocations: 12.15 MB / 364.6 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005936/0.08976, allocations: 4.098 MB / 368.7 MB, free: 3.383 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008017/0.09058, allocations: 71.69 kB / 368.8 MB, free: 3.312 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001658/0.09225, allocations: 0.847 MB / 369.7 MB, free: 2.461 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002135/0.09439, allocations: 1.076 MB / 370.7 MB, free: 1.379 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007704/0.09518, allocations: 463.5 kB / 371.2 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1446/0.2398, allocations: 5.309 MB / 376.5 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00414/0.244, allocations: 3.034 MB / 379.5 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003506/0.2475, allocations: 1.592 MB / 381.1 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003507/0.251, allocations: 2.171 MB / 383.3 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005955/0.2516, allocations: 240.6 kB / 383.5 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001116/0.2528, allocations: 348.2 kB / 383.9 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001073/0.2538, allocations: 1.137 MB / 385 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002174/0.256, allocations: 2.083 MB / 387.1 MB, free: 8.398 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00398/0.26, allocations: 5.997 MB / 393.1 MB, free: 5.301 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.26, allocations: 0 / 393.1 MB, free: 5.301 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.26, allocations: 0 / 393.1 MB, free: 5.301 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.067e-05/0.2601, allocations: 1.188 kB / 393.1 MB, free: 5.301 MB / 302.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.006602/0.2667, allocations: 3.96 MB / 397 MB, free: 2.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.2668, allocations: 9.656 kB / 397.1 MB, free: 2.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001131/0.2679, allocations: 0.4998 MB / 397.6 MB, free: 2.484 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003183/0.2711, allocations: 2.495 MB / 400.1 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001314/0.2713, allocations: 258.8 kB / 400.3 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004497/0.2717, allocations: 360.9 kB / 400.7 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007773/0.2795, allocations: 5.046 MB / 405.7 MB, free: 11.39 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-05/0.2796, allocations: 7.906 kB / 405.7 MB, free: 11.38 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003365/0.2799, allocations: 143 kB / 405.8 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001648/0.2801, allocations: 179.1 kB / 406 MB, free: 11.07 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00704/0.2872, allocations: 4.326 MB / 410.3 MB, free: 6.738 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02111/0.3083, allocations: 14.99 MB / 425.3 MB, free: 7.543 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004197/0.3125, allocations: 4.201 MB / 429.5 MB, free: 3.043 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003078/0.3156, allocations: 2.009 MB / 431.5 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002473/0.3159, allocations: 129.3 kB / 431.7 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.048e-05/0.3159, allocations: 56.56 kB / 431.7 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of pre-optimization done (n=198): time 3.757e-06/0.3159, allocations: 1.031 kB / 431.7 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of matching and sorting (n=218): time 0.01917/0.3351, allocations: 10.09 MB / 441.8 MB, free: 6.648 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.3352, allocations: 73.41 kB / 441.9 MB, free: 6.566 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003345/0.3385, allocations: 2.498 MB / 444.4 MB, free: 4.047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001452/0.3387, allocations: 61.7 kB / 444.4 MB, free: 3.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001051/0.3397, allocations: 1.62 MB / 446.1 MB, free: 2.344 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005212/0.3403, allocations: 0.7274 MB / 446.8 MB, free: 1.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002762/0.3405, allocations: 198.3 kB / 447 MB, free: 1.426 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.683e-05/0.3406, allocations: 305.1 kB / 447.3 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002001/0.3426, allocations: 1.311 MB / 448.6 MB, free: 15.81 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002265/0.3449, allocations: 1.794 MB / 450.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004393/0.3493, allocations: 3.24 MB / 453.6 MB, free: 10.41 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.3493, allocations: 4 kB / 453.6 MB, free: 10.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006661/0.356, allocations: 4.098 MB / 457.7 MB, free: 6.285 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.426e-05/0.356, allocations: 8.469 kB / 457.7 MB, free: 6.277 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.959e-05/0.3561, allocations: 20 kB / 457.8 MB, free: 6.258 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002862/0.3589, allocations: 0.8717 MB / 458.6 MB, free: 5.371 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002079/0.361, allocations: 0.5304 MB / 459.2 MB, free: 4.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009319/0.3704, allocations: 8.753 MB / 467.9 MB, free: 11.69 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001783/0.3722, allocations: 127.8 kB / 468 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001618/0.3723, allocations: 84 kB / 468.1 MB, free: 11.48 MB / 382.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.001938/0.3743, allocations: 1.212 MB / 469.3 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004265/0.3747, allocations: 272.7 kB / 469.6 MB, free: 9.992 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006208/0.3809, allocations: 3.746 MB / 473.3 MB, free: 6.211 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.795e-05/0.381, allocations: 24 kB / 473.4 MB, free: 6.188 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.068e-05/0.381, allocations: 11.92 kB / 473.4 MB, free: 6.176 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.787e-05/0.381, allocations: 11.97 kB / 473.4 MB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01231/0.3933, allocations: 8.099 MB / 481.5 MB, free: 14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-05/0.3934, allocations: 12 kB / 481.5 MB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001687/0.395, allocations: 383.5 kB / 481.9 MB, free: 13.61 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003151/0.3982, allocations: 0.9392 MB / 482.8 MB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001407/0.3984, allocations: 59.97 kB / 482.9 MB, free: 12.6 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01047/0.4088, allocations: 10.22 MB / 493.1 MB, free: 1.855 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.4089, allocations: 3.938 kB / 493.1 MB, free: 1.852 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008295/0.4172, allocations: 5.541 MB / 498.6 MB, free: 12.24 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001207/0.4184, allocations: 0.6343 MB / 499.3 MB, free: 11.59 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003516/0.4188, allocations: 51.98 kB / 499.3 MB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001399/0.4202, allocations: 131.8 kB / 499.5 MB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003702/0.4205, allocations: 185.7 kB / 499.6 MB, free: 11.22 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001337/0.4207, allocations: 59.98 kB / 499.7 MB, free: 11.16 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002424/0.4231, allocations: 1.727 MB / 0.4897 GB, free: 9.426 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4231, allocations: 4 kB / 0.4897 GB, free: 9.422 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00219/0.4253, allocations: 0.8007 MB / 0.4905 GB, free: 8.621 MB / 414.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.0005194/0.4258, allocations: 238.9 kB / 0.4907 GB, free: 8.383 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005654/0.4315, allocations: 3.908 MB / 0.4945 GB, free: 4.395 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.4315, allocations: 0 / 0.4945 GB, free: 4.395 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003639/0.4352, allocations: 2.491 MB / 0.4969 GB, free: 1.828 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004017/0.4392, allocations: 0.7472 MB / 0.4977 GB, free: 1.09 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01203/0.4512, allocations: 9.527 MB / 0.507 GB, free: 7.52 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00232/0.4536, allocations: 2.726 MB / 0.5096 GB, free: 4.766 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007906/0.4544, allocations: 187.4 kB / 0.5098 GB, free: 4.582 MB / 430.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4544, allocations: 3.938 kB / 0.5098 GB, free: 4.578 MB / 430.1 MB Notification: Performance of Templates: time 0.2572/0.7116, allocations: 141.1 MB / 0.6476 GB, free: 43.8 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Transformer/IMC_Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches