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.001122/0.001122, allocations: 196.9 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 226.6 MB / 244.3 MB, free: 6.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009157/0.0009156, allocations: 103.4 kB / 296.4 MB, free: 6.762 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002627/0.0002626, allocations: 4 kB / 356.2 MB, free: 10.97 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.2348, allocations: 51.29 MB / 407.5 MB, free: 27.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.008265/0.2432, allocations: 11.43 MB / 418.9 MB, free: 16.32 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006009/0.2492, allocations: 4.002 MB / 422.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001617/0.2509, allocations: 67.69 kB / 423 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001816/0.2527, allocations: 0.7845 MB / 423.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002753/0.2555, allocations: 1.022 MB / 424.8 MB, free: 10.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008884/0.2564, allocations: 323.5 kB / 425.1 MB, free: 10.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003455/0.2598, allocations: 4.79 MB / 429.9 MB, free: 5.309 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00224/0.2621, allocations: 2.594 MB / 432.5 MB, free: 2.668 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001942/0.264, allocations: 1.58 MB / 434.1 MB, free: 1.082 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002133/0.2662, allocations: 2.082 MB / 436.2 MB, free: 14.99 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004276/0.2666, allocations: 244 kB / 436.4 MB, free: 14.75 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009446/0.2676, allocations: 319.8 kB / 436.7 MB, free: 14.44 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009666/0.2686, allocations: 1.137 MB / 437.9 MB, free: 13.3 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000916/0.2695, allocations: 0.8472 MB / 438.7 MB, free: 12.45 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005271/0.2748, allocations: 5.999 MB / 444.7 MB, free: 6.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.2748, allocations: 0 / 444.7 MB, free: 6.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2748, allocations: 4 kB / 444.7 MB, free: 6.426 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002193/0.275, allocations: 0 / 444.7 MB, free: 6.426 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.008211/0.2833, allocations: 4.009 MB / 448.7 MB, free: 2.352 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.2833, allocations: 8.031 kB / 448.7 MB, free: 2.344 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001852/0.2852, allocations: 0.5337 MB / 449.3 MB, free: 1.805 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00448/0.2897, allocations: 2.416 MB / 451.7 MB, free: 15.34 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002458/0.2899, allocations: 263 kB / 451.9 MB, free: 15.08 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006825/0.2906, allocations: 363.7 kB / 452.3 MB, free: 14.73 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00888/0.2995, allocations: 5.005 MB / 457.3 MB, free: 9.652 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.769e-05/0.2996, allocations: 11.89 kB / 457.3 MB, free: 9.641 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003175/0.3, allocations: 148 kB / 457.4 MB, free: 9.496 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001678/0.3001, allocations: 179.1 kB / 457.6 MB, free: 9.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007781/0.3079, allocations: 4.294 MB / 461.9 MB, free: 5.02 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02662/0.3346, allocations: 14.99 MB / 476.9 MB, free: 5.699 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00456/0.3392, allocations: 4.187 MB / 481.1 MB, free: 1.211 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003072/0.3423, allocations: 2.002 MB / 483.1 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002716/0.3426, allocations: 139 kB / 483.2 MB, free: 15.05 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.255e-05/0.3427, allocations: 56.56 kB / 483.3 MB, free: 14.99 MB / 362.7 MB Notification: Performance of pre-optimization done (n=198): time 4.318e-06/0.3427, allocations: 0 / 483.3 MB, free: 14.99 MB / 362.7 MB Notification: Performance of matching and sorting (n=218): time 0.01988/0.3626, allocations: 10.05 MB / 493.3 MB, free: 4.828 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.3627, allocations: 81.34 kB / 493.4 MB, free: 4.738 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004096/0.3668, allocations: 2.494 MB / 495.9 MB, free: 2.223 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002661/0.3671, allocations: 61.7 kB / 496 MB, free: 2.156 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001274/0.3683, allocations: 1.611 MB / 497.6 MB, free: 0.5234 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007471/0.3691, allocations: 0.7394 MB / 498.3 MB, free: 15.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000145/0.3693, allocations: 44 kB / 498.4 MB, free: 15.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.00019/0.3695, allocations: 398.5 kB / 498.8 MB, free: 15.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002322/0.3718, allocations: 1.305 MB / 0.4883 GB, free: 14.03 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002589/0.3744, allocations: 1.782 MB / 0.4901 GB, free: 12.05 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002594/0.377, allocations: 1.56 MB / 0.4916 GB, free: 10.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.628e-06/0.377, allocations: 4 kB / 0.4916 GB, free: 10.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.0069/0.3839, allocations: 4.079 MB / 0.4956 GB, free: 6.387 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.358e-05/0.384, allocations: 8.031 kB / 0.4956 GB, free: 6.379 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.273e-05/0.384, allocations: 20 kB / 0.4956 GB, free: 6.359 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002743/0.3868, allocations: 0.8756 MB / 0.4965 GB, free: 5.469 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002259/0.3891, allocations: 0.5304 MB / 0.497 GB, free: 4.938 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2187/0.6078, allocations: 8.732 MB / 0.5055 GB, free: 87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002264/0.6101, allocations: 116.9 kB / 0.5056 GB, free: 86.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000157/0.6102, allocations: 86.56 kB / 0.5057 GB, free: 86.95 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.002237/0.6125, allocations: 1.217 MB / 0.5069 GB, free: 86.37 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004792/0.613, allocations: 277.2 kB / 0.5072 GB, free: 86.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005459/0.6184, allocations: 3.738 MB / 0.5108 GB, free: 84.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.367e-05/0.6185, allocations: 19.5 kB / 0.5108 GB, free: 84.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/0.6185, allocations: 15.34 kB / 0.5108 GB, free: 84.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.765e-05/0.6185, allocations: 11.48 kB / 0.5109 GB, free: 84.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01117/0.6297, allocations: 8.089 MB / 0.5188 GB, free: 81.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/0.6298, allocations: 7.891 kB / 0.5188 GB, free: 81.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001538/0.6313, allocations: 388.8 kB / 0.5191 GB, free: 81.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002848/0.6342, allocations: 0.9276 MB / 0.52 GB, free: 81 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001572/0.6343, allocations: 57.16 kB / 0.5201 GB, free: 80.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008232/0.6426, allocations: 10.21 MB / 0.5301 GB, free: 70.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.576e-06/0.6426, allocations: 4 kB / 0.5301 GB, free: 70.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007021/0.6496, allocations: 5.524 MB / 0.5355 GB, free: 65.46 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001307/0.651, allocations: 0.6414 MB / 0.5361 GB, free: 64.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004466/0.6514, allocations: 47.98 kB / 0.5361 GB, free: 64.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001346/0.6528, allocations: 131.9 kB / 0.5363 GB, free: 64.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003824/0.6532, allocations: 177.8 kB / 0.5364 GB, free: 64.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001226/0.6533, allocations: 59.98 kB / 0.5365 GB, free: 64.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002196/0.6555, allocations: 1.715 MB / 0.5382 GB, free: 62.66 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6555, allocations: 0 / 0.5382 GB, free: 62.66 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00219/0.6577, allocations: 0.8 MB / 0.5389 GB, free: 61.87 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.0004862/0.6582, allocations: 215.5 kB / 0.5391 GB, free: 61.67 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004624/0.6629, allocations: 3.894 MB / 0.5429 GB, free: 57.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.6629, allocations: 0 / 0.5429 GB, free: 57.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003008/0.6659, allocations: 2.49 MB / 0.5454 GB, free: 55.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003314/0.6692, allocations: 0.757 MB / 0.5461 GB, free: 54.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01005/0.6793, allocations: 9.124 MB / 0.555 GB, free: 45.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001655/0.681, allocations: 2.73 MB / 0.5577 GB, free: 42.46 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008208/0.6818, allocations: 191.4 kB / 0.5579 GB, free: 42.27 MB / 378.7 MB Notification: Performance of SimCode: time 7.41e-07/0.6818, allocations: 0 / 0.5579 GB, free: 42.27 MB / 378.7 MB Notification: Performance of Templates: time 0.2996/0.9814, allocations: 141.2 MB / 0.6957 GB, free: 155.7 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