Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.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.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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008422/0.0008423, allocations: 98.77 kB / 17.01 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00108/0.00108, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 227.7 MB / 246.4 MB, free: 9.812 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002054/0.0002055, allocations: 8 kB / 307.1 MB, free: 0.9648 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09056/0.09078, allocations: 51.52 MB / 358.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01156/0.1024, allocations: 11.46 MB / 370.1 MB, free: 1.941 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1752/0.2777, allocations: 4.019 MB / 374.1 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002919/0.2806, allocations: 71.94 kB / 374.2 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003099/0.2838, allocations: 0.778 MB / 375 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004541/0.2883, allocations: 1.027 MB / 376 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001473/0.2898, allocations: 328.5 kB / 376.3 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.007316/0.2971, allocations: 4.818 MB / 381.1 MB, free: 8.195 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004732/0.3019, allocations: 2.599 MB / 383.7 MB, free: 7.703 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00334/0.3053, allocations: 1.571 MB / 385.3 MB, free: 7.367 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003886/0.3092, allocations: 2.101 MB / 387.4 MB, free: 6.965 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008801/0.3101, allocations: 241 kB / 387.6 MB, free: 6.965 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001756/0.3119, allocations: 321.8 kB / 387.9 MB, free: 6.957 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001233/0.3131, allocations: 1.136 MB / 389.1 MB, free: 6.801 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001518/0.3147, allocations: 0.8447 MB / 389.9 MB, free: 6.633 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005402/0.3201, allocations: 6.01 MB / 395.9 MB, free: 2.551 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3201, allocations: 0 / 395.9 MB, free: 2.551 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.3201, allocations: 0.8438 kB / 395.9 MB, free: 2.551 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002031/0.3203, allocations: 0 / 395.9 MB, free: 2.551 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.008433/0.3288, allocations: 4.011 MB / 399.9 MB, free: 16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.3288, allocations: 10.72 kB / 400 MB, free: 16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002198/0.331, allocations: 0.5343 MB / 400.5 MB, free: 15.74 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005039/0.3361, allocations: 2.439 MB / 402.9 MB, free: 14 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000243/0.3363, allocations: 262 kB / 403.2 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008603/0.3372, allocations: 354.3 kB / 403.5 MB, free: 13.4 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0106/0.3478, allocations: 5.006 MB / 408.5 MB, free: 8.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.984e-05/0.3479, allocations: 11.84 kB / 408.6 MB, free: 8.328 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004022/0.3484, allocations: 150.8 kB / 408.7 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001868/0.3486, allocations: 187 kB / 408.9 MB, free: 8 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008218/0.3568, allocations: 4.294 MB / 413.2 MB, free: 3.699 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02564/0.3824, allocations: 14.98 MB / 428.2 MB, free: 4.527 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004765/0.3872, allocations: 4.208 MB / 432.4 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003293/0.3906, allocations: 2 MB / 434.4 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003132/0.3909, allocations: 133.8 kB / 434.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.26e-05/0.391, allocations: 56.56 kB / 434.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=198): time 3.837e-06/0.391, allocations: 0 / 434.5 MB, free: 13.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=218): time 0.02069/0.4117, allocations: 10.03 MB / 444.6 MB, free: 3.684 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.655e-05/0.4118, allocations: 77.39 kB / 444.7 MB, free: 3.598 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004444/0.4162, allocations: 2.499 MB / 447.2 MB, free: 1.078 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000391/0.4167, allocations: 65.7 kB / 447.2 MB, free: 1.008 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001373/0.418, allocations: 1.622 MB / 448.8 MB, free: 15.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009901/0.419, allocations: 0.7277 MB / 449.6 MB, free: 14.65 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001535/0.4192, allocations: 44 kB / 449.6 MB, free: 14.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002266/0.4194, allocations: 402.6 kB / 450 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002269/0.4217, allocations: 1.301 MB / 451.3 MB, free: 12.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002587/0.4243, allocations: 1.782 MB / 453.1 MB, free: 10.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002618/0.427, allocations: 1.56 MB / 454.6 MB, free: 9.367 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.391e-05/0.427, allocations: 4 kB / 454.7 MB, free: 9.363 MB / 366.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007453/0.4344, allocations: 4.079 MB / 458.7 MB, free: 5.258 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.971e-05/0.4345, allocations: 12 kB / 458.7 MB, free: 5.246 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.484e-05/0.4346, allocations: 12 kB / 458.8 MB, free: 5.234 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002967/0.4375, allocations: 0.8843 MB / 459.6 MB, free: 4.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002341/0.4399, allocations: 0.5266 MB / 460.2 MB, free: 3.812 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01055/0.4505, allocations: 8.747 MB / 468.9 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002263/0.4528, allocations: 119.8 kB / 469 MB, free: 10.56 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003847/0.4532, allocations: 91.98 kB / 469.1 MB, free: 10.47 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 (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 initialization (252): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 25,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002769/0.4559, allocations: 1.212 MB / 470.3 MB, free: 9.246 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009078/0.4569, allocations: 272.7 kB / 470.6 MB, free: 8.977 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007392/0.4643, allocations: 3.73 MB / 474.3 MB, free: 5.219 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-05/0.4644, allocations: 23.95 kB / 474.4 MB, free: 5.195 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.39e-05/0.4644, allocations: 8 kB / 474.4 MB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-05/0.4644, allocations: 11.95 kB / 474.4 MB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01538/0.4798, allocations: 8.101 MB / 482.5 MB, free: 13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.003e-05/0.4799, allocations: 0 / 482.5 MB, free: 13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001643/0.4815, allocations: 391.8 kB / 482.9 MB, free: 12.62 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003027/0.4846, allocations: 0.9283 MB / 483.8 MB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002294/0.4848, allocations: 55.97 kB / 483.8 MB, free: 11.62 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01095/0.4958, allocations: 10.22 MB / 494.1 MB, free: 0.875 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.4958, allocations: 4 kB / 494.1 MB, free: 0.8711 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009417/0.5053, allocations: 5.532 MB / 499.6 MB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001726/0.507, allocations: 0.6343 MB / 0.4885 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008353/0.5079, allocations: 55.94 kB / 0.4886 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001899/0.5098, allocations: 131.9 kB / 0.4887 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005066/0.5103, allocations: 181.8 kB / 0.4889 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001887/0.5105, allocations: 59.98 kB / 0.4889 GB, free: 10.2 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003402/0.5139, allocations: 1.723 MB / 0.4906 GB, free: 8.469 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5139, allocations: 0 / 0.4906 GB, free: 8.469 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003416/0.5174, allocations: 0.793 MB / 0.4914 GB, free: 7.676 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 (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,88.9%) 25,(2,100.0%) 12,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005981/0.518, allocations: 203.2 kB / 0.4916 GB, free: 7.477 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006269/0.5243, allocations: 3.892 MB / 0.4954 GB, free: 3.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/0.5243, allocations: 0 / 0.4954 GB, free: 3.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003932/0.5282, allocations: 2.493 MB / 0.4978 GB, free: 0.9453 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004717/0.533, allocations: 0.7736 MB / 0.4986 GB, free: 188 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01588/0.5489, allocations: 9.12 MB / 0.5075 GB, free: 7.008 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004059/0.553, allocations: 2.77 MB / 0.5102 GB, free: 4.211 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002933/0.5559, allocations: 0.6829 MB / 0.5108 GB, free: 3.523 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009126/0.5569, allocations: 183.4 kB / 0.511 GB, free: 3.344 MB / 430.1 MB Notification: Performance of SimCode: time 7.81e-07/0.5569, allocations: 0 / 0.511 GB, free: 3.344 MB / 430.1 MB Notification: Performance of Templates: time 0.2365/0.7934, allocations: 42.83 MB / 0.5528 GB, free: 134.5 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches