Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001604/0.001604, allocations: 190.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 226.6 MB / 244.7 MB, free: 8.207 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009342/0.0009341, allocations: 99.52 kB / 296.8 MB, free: 6.902 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002294/0.0002297, allocations: 8 kB / 356.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2388/0.239, allocations: 51.29 MB / 408.1 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.008575/0.2476, allocations: 11.43 MB / 419.5 MB, free: 16.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006565/0.2543, allocations: 4.002 MB / 423.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001627/0.2559, allocations: 79.62 kB / 423.6 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001916/0.2579, allocations: 0.7767 MB / 424.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002682/0.2606, allocations: 1.041 MB / 425.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009106/0.2615, allocations: 323.5 kB / 425.7 MB, free: 10.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003742/0.2652, allocations: 4.846 MB / 430.5 MB, free: 5.16 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002802/0.2681, allocations: 3.037 MB / 433.6 MB, free: 2.055 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002433/0.2705, allocations: 1.576 MB / 435.2 MB, free: 484 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002933/0.2734, allocations: 2.082 MB / 437.2 MB, free: 14.38 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005873/0.2741, allocations: 244 kB / 437.5 MB, free: 14.14 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001088/0.2752, allocations: 351.8 kB / 437.8 MB, free: 13.8 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001106/0.2763, allocations: 1.137 MB / 439 MB, free: 12.66 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00249/0.2788, allocations: 1.992 MB / 441 MB, free: 10.65 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005417/0.2842, allocations: 6.003 MB / 447 MB, free: 4.633 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.2842, allocations: 0 / 447 MB, free: 4.633 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2842, allocations: 0 / 447 MB, free: 4.633 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.000147/0.2844, allocations: 0 / 447 MB, free: 4.633 MB / 314.7 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.007914/0.2923, allocations: 3.974 MB / 450.9 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.2924, allocations: 8.031 kB / 450.9 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001611/0.294, allocations: 0.5424 MB / 451.5 MB, free: 40 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004237/0.2982, allocations: 2.493 MB / 454 MB, free: 13.5 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001907/0.2984, allocations: 263.1 kB / 454.2 MB, free: 13.24 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005251/0.299, allocations: 359.9 kB / 454.6 MB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00849/0.3075, allocations: 5.009 MB / 459.6 MB, free: 7.809 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.771e-05/0.3076, allocations: 8 kB / 459.6 MB, free: 7.801 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000333/0.3079, allocations: 140 kB / 459.7 MB, free: 7.664 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001723/0.3081, allocations: 183.1 kB / 459.9 MB, free: 7.484 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007713/0.3158, allocations: 4.294 MB / 464.2 MB, free: 3.184 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02367/0.3395, allocations: 15 MB / 479.2 MB, free: 3.852 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004577/0.3441, allocations: 4.183 MB / 483.4 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003304/0.3475, allocations: 2.006 MB / 485.4 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002957/0.3478, allocations: 135.1 kB / 485.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.635e-05/0.3478, allocations: 52.56 kB / 485.6 MB, free: 13.15 MB / 362.7 MB Notification: Performance of pre-optimization done (n=198): time 3.787e-06/0.3479, allocations: 0 / 485.6 MB, free: 13.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=218): time 0.02145/0.3693, allocations: 10.06 MB / 495.6 MB, free: 2.977 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.002e-05/0.3694, allocations: 73.41 kB / 495.7 MB, free: 2.895 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004539/0.374, allocations: 2.494 MB / 498.2 MB, free: 388 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003684/0.3744, allocations: 61.7 kB / 498.3 MB, free: 320 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001246/0.3756, allocations: 1.623 MB / 499.9 MB, free: 14.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008098/0.3764, allocations: 0.7393 MB / 0.4889 GB, free: 13.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002533/0.3767, allocations: 44 kB / 0.4889 GB, free: 13.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002173/0.377, allocations: 402.6 kB / 0.4893 GB, free: 13.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002314/0.3793, allocations: 1.297 MB / 0.4906 GB, free: 12.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002596/0.3819, allocations: 1.782 MB / 0.4923 GB, free: 10.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005051/0.387, allocations: 3.223 MB / 0.4955 GB, free: 6.797 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.106e-05/0.387, allocations: 4 kB / 0.4955 GB, free: 6.793 MB / 378.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.007751/0.3948, allocations: 4.079 MB / 0.4995 GB, free: 2.688 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.824e-05/0.3949, allocations: 18.8 kB / 0.4995 GB, free: 2.672 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.454e-05/0.3949, allocations: 12 kB / 0.4995 GB, free: 2.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002962/0.3979, allocations: 0.8758 MB / 0.5003 GB, free: 1.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002298/0.4002, allocations: 0.5343 MB / 0.5009 GB, free: 1.234 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1782/0.5784, allocations: 8.717 MB / 0.5094 GB, free: 83.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002028/0.5805, allocations: 128.2 kB / 0.5095 GB, free: 83.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003402/0.5808, allocations: 87.03 kB / 0.5096 GB, free: 83.83 MB / 378.7 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.002061/0.5829, allocations: 1.207 MB / 0.5108 GB, free: 83.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007445/0.5837, allocations: 281.7 kB / 0.511 GB, free: 83.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006231/0.5899, allocations: 3.732 MB / 0.5147 GB, free: 81.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.466e-05/0.5899, allocations: 20.77 kB / 0.5147 GB, free: 81.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-05/0.59, allocations: 9.438 kB / 0.5147 GB, free: 81.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.806e-05/0.59, allocations: 11.34 kB / 0.5147 GB, free: 81.79 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01199/0.602, allocations: 8.101 MB / 0.5226 GB, free: 77.97 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.149e-05/0.602, allocations: 3.062 kB / 0.5226 GB, free: 77.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001498/0.6035, allocations: 385.8 kB / 0.523 GB, free: 77.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002758/0.6063, allocations: 0.9294 MB / 0.5239 GB, free: 76.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001662/0.6065, allocations: 55.98 kB / 0.524 GB, free: 76.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008206/0.6147, allocations: 10.21 MB / 0.5339 GB, free: 66.08 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.6147, allocations: 0 / 0.5339 GB, free: 66.08 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007338/0.6221, allocations: 5.54 MB / 0.5393 GB, free: 60.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001352/0.6235, allocations: 0.6381 MB / 0.54 GB, free: 60.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006121/0.6241, allocations: 55.98 kB / 0.54 GB, free: 59.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001469/0.6256, allocations: 127.9 kB / 0.5401 GB, free: 59.86 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003632/0.626, allocations: 181.7 kB / 0.5403 GB, free: 59.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001216/0.6261, allocations: 63.98 kB / 0.5404 GB, free: 59.62 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002125/0.6282, allocations: 1.715 MB / 0.542 GB, free: 57.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.6282, allocations: 0 / 0.542 GB, free: 57.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002226/0.6305, allocations: 0.7994 MB / 0.5428 GB, free: 57.09 MB / 378.7 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.0004802/0.631, allocations: 239.7 kB / 0.5431 GB, free: 56.87 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00479/0.6358, allocations: 3.892 MB / 0.5469 GB, free: 52.9 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.6358, allocations: 4 kB / 0.5469 GB, free: 52.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00303/0.6388, allocations: 2.487 MB / 0.5493 GB, free: 50.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00397/0.6428, allocations: 0.7369 MB / 0.55 GB, free: 49.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01092/0.6537, allocations: 9.117 MB / 0.5589 GB, free: 40.45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001815/0.6556, allocations: 2.726 MB / 0.5616 GB, free: 37.7 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008715/0.6565, allocations: 191.4 kB / 0.5618 GB, free: 37.51 MB / 378.7 MB Notification: Performance of SimCode: time 6.51e-07/0.6565, allocations: 0 / 0.5618 GB, free: 37.51 MB / 378.7 MB Notification: Performance of Templates: time 0.3309/0.9874, allocations: 141.2 MB / 0.6996 GB, free: 150.4 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches