Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.AIMC_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.|smee.is.1.|smee.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer") translateModel(Modelica.Electrical.Machines.Examples.Transformers.AIMC_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.|smee.is.1.|smee.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001027/0.001027, allocations: 108.7 kB / 17.93 MB, free: 5.422 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.001221/0.001221, allocations: 189.8 kB / 18.86 MB, free: 4.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.305/1.305, allocations: 205.1 MB / 224.7 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001073/0.001073, allocations: 55.91 kB / 280.8 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08378/0.08486, allocations: 46.62 MB / 327.4 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.01906/0.104, allocations: 12.72 MB / 340.2 MB, free: 8.012 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009642/0.1137, allocations: 4.188 MB / 344.3 MB, free: 3.809 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00311/0.1169, allocations: 63.62 kB / 344.4 MB, free: 3.746 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004078/0.121, allocations: 0.8548 MB / 345.3 MB, free: 2.887 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005631/0.1267, allocations: 1.076 MB / 346.3 MB, free: 1.805 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001579/0.1282, allocations: 463.6 kB / 346.8 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005314/0.1336, allocations: 4.672 MB / 351.5 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003792/0.1374, allocations: 3.602 MB / 355.1 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003936/0.1413, allocations: 2.129 MB / 357.2 MB, free: 6.863 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004104/0.1455, allocations: 2.62 MB / 359.8 MB, free: 4.234 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001312/0.1468, allocations: 0.5508 MB / 360.4 MB, free: 3.684 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001689/0.1485, allocations: 0.6443 MB / 361 MB, free: 3.039 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001332/0.1498, allocations: 1.523 MB / 362.5 MB, free: 1.512 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00303/0.1529, allocations: 2.489 MB / 365 MB, free: 15.01 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005801/0.1587, allocations: 6.216 MB / 371.2 MB, free: 8.781 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.1587, allocations: 0 / 371.2 MB, free: 8.781 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1587, allocations: 4 kB / 371.2 MB, free: 8.777 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002223/0.159, allocations: 4 kB / 371.2 MB, free: 8.773 MB / 318.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.009971/0.169, allocations: 4.683 MB / 375.9 MB, free: 4.023 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.169, allocations: 8.031 kB / 375.9 MB, free: 4.016 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001219/0.1702, allocations: 0.4995 MB / 376.4 MB, free: 3.512 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003684/0.1739, allocations: 2.373 MB / 378.8 MB, free: 1.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001768/0.1741, allocations: 271 kB / 379.1 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005051/0.1746, allocations: 359.9 kB / 379.4 MB, free: 484 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1473/0.322, allocations: 5.013 MB / 384.4 MB, free: 47.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.258e-05/0.3221, allocations: 7.641 kB / 384.4 MB, free: 47.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003475/0.3225, allocations: 147.9 kB / 384.6 MB, free: 47.84 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002093/0.3227, allocations: 180.1 kB / 384.8 MB, free: 47.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007026/0.3297, allocations: 4.293 MB / 389.1 MB, free: 46.29 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01804/0.3478, allocations: 14.91 MB / 404 MB, free: 36.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00325/0.3511, allocations: 4.191 MB / 408.2 MB, free: 32.62 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002394/0.3535, allocations: 2.006 MB / 410.2 MB, free: 30.62 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002407/0.3537, allocations: 127.1 kB / 410.3 MB, free: 30.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.049e-05/0.3538, allocations: 60.5 kB / 410.3 MB, free: 30.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=198): time 3.557e-06/0.3538, allocations: 2.625 kB / 410.4 MB, free: 30.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=218): time 0.01574/0.3695, allocations: 10.01 MB / 420.4 MB, free: 20.3 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.043e-05/0.3696, allocations: 73.41 kB / 420.4 MB, free: 20.21 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002614/0.3722, allocations: 2.518 MB / 423 MB, free: 17.68 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001421/0.3724, allocations: 61.7 kB / 423 MB, free: 17.61 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006824/0.3731, allocations: 1.615 MB / 424.6 MB, free: 15.98 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003726/0.3734, allocations: 0.7347 MB / 425.4 MB, free: 15.25 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005371/0.374, allocations: 416.3 kB / 425.8 MB, free: 14.84 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.56e-05/0.374, allocations: 301.1 kB / 426.1 MB, free: 14.54 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001491/0.3755, allocations: 1.305 MB / 427.4 MB, free: 13.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001644/0.3772, allocations: 1.779 MB / 429.1 MB, free: 11.26 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003271/0.3805, allocations: 3.214 MB / 432.4 MB, free: 7.867 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/0.3805, allocations: 4 kB / 432.4 MB, free: 7.863 MB / 318.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.005584/0.3861, allocations: 4.087 MB / 436.5 MB, free: 3.75 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.82e-05/0.3861, allocations: 8 kB / 436.5 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.437e-05/0.3862, allocations: 16 kB / 436.5 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002579/0.3887, allocations: 0.8787 MB / 437.4 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002003/0.3908, allocations: 0.5293 MB / 437.9 MB, free: 2.309 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009565/0.4003, allocations: 9.491 MB / 447.4 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002103/0.4025, allocations: 115.9 kB / 447.5 MB, free: 8.293 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002051/0.4027, allocations: 87.98 kB / 447.6 MB, free: 8.207 MB / 334.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.002024/0.4047, allocations: 1.211 MB / 448.8 MB, free: 6.984 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005694/0.4053, allocations: 280.6 kB / 449.1 MB, free: 6.707 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006203/0.4115, allocations: 3.714 MB / 452.8 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-05/0.4116, allocations: 24 kB / 452.8 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.838e-05/0.4116, allocations: 4 kB / 452.8 MB, free: 2.934 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.031e-05/0.4116, allocations: 7.969 kB / 452.8 MB, free: 2.926 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01274/0.4244, allocations: 8.092 MB / 460.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.988e-06/0.4244, allocations: 10.94 kB / 460.9 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001586/0.426, allocations: 383.4 kB / 461.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003037/0.429, allocations: 0.9317 MB / 462.2 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001629/0.4292, allocations: 47.98 kB / 462.3 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01076/0.44, allocations: 11.08 MB / 473.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.44, allocations: 4 kB / 473.3 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008326/0.4484, allocations: 5.521 MB / 478.9 MB, free: 8.195 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001344/0.4497, allocations: 0.6304 MB / 479.5 MB, free: 7.543 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003631/0.4501, allocations: 51.98 kB / 479.5 MB, free: 7.492 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001306/0.4514, allocations: 115.9 kB / 479.7 MB, free: 7.379 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004114/0.4518, allocations: 177.7 kB / 479.8 MB, free: 7.203 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001353/0.452, allocations: 67.98 kB / 479.9 MB, free: 7.137 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002381/0.4544, allocations: 1.734 MB / 481.6 MB, free: 5.391 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.41e-07/0.4544, allocations: 0 / 481.6 MB, free: 5.391 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002162/0.4566, allocations: 0.7917 MB / 482.4 MB, free: 4.602 MB / 366.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 {(2,12,100.0%), (1,1,100.0%), (3,25,88.9%), (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.0005024/0.4571, allocations: 223.6 kB / 482.6 MB, free: 4.379 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.01001/0.4671, allocations: 5.71 MB / 488.4 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.416e-06/0.4671, allocations: 4.188 kB / 488.4 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003511/0.4706, allocations: 2.48 MB / 490.8 MB, free: 12.05 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003224/0.4739, allocations: 0.7893 MB / 491.6 MB, free: 11.27 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/0.4863, allocations: 9.352 MB / 0.4892 GB, free: 1.867 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002226/0.4886, allocations: 2.727 MB / 0.4919 GB, free: 15.11 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009112/0.4895, allocations: 191.4 kB / 0.4921 GB, free: 14.93 MB / 398.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4895, allocations: 0 / 0.4921 GB, free: 14.93 MB / 398.1 MB Notification: Performance of Templates: time 0.273/0.7625, allocations: 141.6 MB / 0.6304 GB, free: 32.14 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/Transformers/AIMC_Transformer/AIMC_Transformer.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches