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.001521/0.001521, allocations: 99.14 kB / 16.5 MB, free: 6.648 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.001754/0.001754, allocations: 194 kB / 17.42 MB, free: 6.066 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.285/1.285, allocations: 222.9 MB / 241.1 MB, free: 15.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001529/0.001529, allocations: 47.56 kB / 300 MB, free: 6.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1115, allocations: 49.44 MB / 349.4 MB, free: 4.738 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01285/0.1243, allocations: 12.76 MB / 362.2 MB, free: 7.906 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007428/0.1318, allocations: 4.152 MB / 366.3 MB, free: 3.746 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002045/0.1339, allocations: 75.62 kB / 366.4 MB, free: 3.672 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002713/0.1366, allocations: 0.847 MB / 367.2 MB, free: 2.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003148/0.1398, allocations: 1.08 MB / 368.3 MB, free: 1.734 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001151/0.141, allocations: 471.5 kB / 368.8 MB, free: 1.273 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1633/0.3042, allocations: 5.305 MB / 374.1 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0044/0.3087, allocations: 3.047 MB / 377.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004076/0.3128, allocations: 1.814 MB / 378.9 MB, free: 9.859 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004058/0.3168, allocations: 2.452 MB / 381.4 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008199/0.3177, allocations: 347.1 kB / 381.7 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001546/0.3192, allocations: 447.4 kB / 382.2 MB, free: 9.445 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001255/0.3205, allocations: 1.283 MB / 383.5 MB, free: 9.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002474/0.323, allocations: 2.241 MB / 385.7 MB, free: 7.887 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00501/0.328, allocations: 7.15 MB / 392.9 MB, free: 4.043 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.328, allocations: 1.25 kB / 392.9 MB, free: 4.043 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.328, allocations: 0 / 392.9 MB, free: 4.043 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001406/0.3282, allocations: 0 / 392.9 MB, free: 4.043 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.008055/0.3362, allocations: 4.699 MB / 397.6 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/0.3363, allocations: 8.969 kB / 397.6 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001174/0.3375, allocations: 0.4969 MB / 398.1 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003524/0.341, allocations: 2.484 MB / 400.5 MB, free: 15.05 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001768/0.3412, allocations: 266.1 kB / 400.8 MB, free: 14.79 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004842/0.3417, allocations: 358.9 kB / 401.2 MB, free: 14.44 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008212/0.3499, allocations: 5.032 MB / 406.2 MB, free: 9.359 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.757e-05/0.35, allocations: 15.28 kB / 406.2 MB, free: 9.348 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003358/0.3503, allocations: 147.9 kB / 406.3 MB, free: 9.207 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002084/0.3506, allocations: 179.1 kB / 406.5 MB, free: 9.031 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006728/0.3573, allocations: 4.297 MB / 410.8 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02442/0.3817, allocations: 14.89 MB / 425.7 MB, free: 5.684 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004522/0.3863, allocations: 4.197 MB / 429.9 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003288/0.3896, allocations: 1.994 MB / 431.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003122/0.3899, allocations: 134.8 kB / 432 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.351e-05/0.39, allocations: 52.56 kB / 432.1 MB, free: 14.99 MB / 350.1 MB Notification: Performance of pre-optimization done (n=198): time 3.897e-06/0.39, allocations: 4 kB / 432.1 MB, free: 14.99 MB / 350.1 MB Notification: Performance of matching and sorting (n=218): time 0.02085/0.4109, allocations: 9.938 MB / 442 MB, free: 4.945 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.596e-05/0.411, allocations: 77.41 kB / 442.1 MB, free: 4.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003935/0.4149, allocations: 2.498 MB / 444.6 MB, free: 2.34 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002012/0.4151, allocations: 65.69 kB / 444.7 MB, free: 2.27 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001159/0.4163, allocations: 1.622 MB / 446.3 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005887/0.4169, allocations: 0.7249 MB / 447 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000688/0.4176, allocations: 420.3 kB / 447.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.748e-05/0.4177, allocations: 309 kB / 447.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002055/0.4198, allocations: 1.297 MB / 449 MB, free: 13.89 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002387/0.4221, allocations: 1.781 MB / 450.8 MB, free: 11.92 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004548/0.4267, allocations: 3.206 MB / 454 MB, free: 8.539 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-05/0.4267, allocations: 8 kB / 454 MB, free: 8.531 MB / 366.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006815/0.4335, allocations: 4.075 MB / 458.1 MB, free: 4.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.718e-05/0.4336, allocations: 10.66 kB / 458.1 MB, free: 4.422 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.003e-05/0.4336, allocations: 16 kB / 458.1 MB, free: 4.406 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00287/0.4365, allocations: 0.8878 MB / 459 MB, free: 3.504 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002047/0.4386, allocations: 0.5266 MB / 459.5 MB, free: 2.977 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009907/0.4485, allocations: 8.731 MB / 468.3 MB, free: 9.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002128/0.4506, allocations: 119.8 kB / 468.4 MB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000198/0.4508, allocations: 84 kB / 468.5 MB, free: 9.652 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.002091/0.4529, allocations: 1.219 MB / 469.7 MB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005416/0.4535, allocations: 276.7 kB / 469.9 MB, free: 8.148 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006162/0.4596, allocations: 3.719 MB / 473.7 MB, free: 4.395 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.558e-05/0.4597, allocations: 20 kB / 473.7 MB, free: 4.375 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.107e-05/0.4597, allocations: 8 kB / 473.7 MB, free: 4.367 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.583e-05/0.4597, allocations: 7.969 kB / 473.7 MB, free: 4.359 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01256/0.4723, allocations: 8.072 MB / 481.8 MB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.949e-06/0.4723, allocations: 12 kB / 481.8 MB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001613/0.4739, allocations: 383.4 kB / 482.2 MB, free: 11.84 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002961/0.4769, allocations: 0.9368 MB / 483.1 MB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001555/0.4771, allocations: 59.97 kB / 483.2 MB, free: 10.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01042/0.4875, allocations: 10.2 MB / 493.4 MB, free: 96 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.4875, allocations: 0 / 493.4 MB, free: 96 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009052/0.4966, allocations: 5.511 MB / 498.9 MB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001703/0.4983, allocations: 0.6265 MB / 499.5 MB, free: 9.867 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008071/0.4991, allocations: 51.98 kB / 499.5 MB, free: 9.816 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001809/0.501, allocations: 115.9 kB / 499.7 MB, free: 9.703 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004677/0.5015, allocations: 181.7 kB / 499.8 MB, free: 9.523 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001646/0.5016, allocations: 63.98 kB / 499.9 MB, free: 9.461 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003152/0.5048, allocations: 1.727 MB / 0.4899 GB, free: 7.723 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5048, allocations: 0 / 0.4899 GB, free: 7.723 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003195/0.508, allocations: 0.8046 MB / 0.4907 GB, free: 6.918 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.0006847/0.5087, allocations: 239.5 kB / 0.4909 GB, free: 6.684 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007266/0.516, allocations: 3.873 MB / 0.4947 GB, free: 2.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.143e-06/0.516, allocations: 4.188 kB / 0.4947 GB, free: 2.727 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004156/0.5202, allocations: 2.482 MB / 0.4971 GB, free: 176 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004848/0.525, allocations: 0.7466 MB / 0.4978 GB, free: 15.43 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01535/0.5404, allocations: 9.358 MB / 0.507 GB, free: 6.039 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003659/0.5441, allocations: 2.781 MB / 0.5097 GB, free: 3.23 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002276/0.5464, allocations: 0.6787 MB / 0.5103 GB, free: 2.551 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005921/0.547, allocations: 179.4 kB / 0.5105 GB, free: 2.375 MB / 430.1 MB Notification: Performance of SimCode: time 1.272e-06/0.547, allocations: 0 / 0.5105 GB, free: 2.375 MB / 430.1 MB Notification: Performance of Templates: time 0.2772/0.8242, allocations: 44.56 MB / 0.554 GB, free: 139.7 MB / 446.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