Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.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.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer") translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.is.1.|aimc.is.2.|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001073/0.001073, allocations: 194 kB / 17.38 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.27/1.27, allocations: 226.5 MB / 244.7 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007531/0.0007532, allocations: 91 kB / 296.8 MB, free: 6.879 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002128/0.0002129, allocations: 8 kB / 356.8 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2164/0.2166, allocations: 51.3 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer): time 0.008181/0.2249, allocations: 11.41 MB / 419.5 MB, free: 16.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005962/0.2308, allocations: 4.009 MB / 423.5 MB, free: 12.24 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001364/0.2322, allocations: 71.69 kB / 423.5 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00154/0.2338, allocations: 0.7767 MB / 424.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002166/0.236, allocations: 1.041 MB / 425.4 MB, free: 10.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007507/0.2367, allocations: 323.5 kB / 425.7 MB, free: 10.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.003411/0.2402, allocations: 4.847 MB / 430.5 MB, free: 5.156 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002636/0.2428, allocations: 3.037 MB / 433.6 MB, free: 2.051 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002373/0.2452, allocations: 1.575 MB / 435.1 MB, free: 484 kB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002454/0.2477, allocations: 2.09 MB / 437.2 MB, free: 14.38 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004667/0.2481, allocations: 244 kB / 437.5 MB, free: 14.14 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008921/0.249, allocations: 347.8 kB / 437.8 MB, free: 13.8 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00105/0.2501, allocations: 1.137 MB / 438.9 MB, free: 12.66 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002172/0.2523, allocations: 1.992 MB / 440.9 MB, free: 10.65 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00514/0.2574, allocations: 5.999 MB / 446.9 MB, free: 4.633 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.2575, allocations: 4 kB / 446.9 MB, free: 4.629 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.2575, allocations: 0 / 446.9 MB, free: 4.629 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001526/0.2576, allocations: 0 / 446.9 MB, free: 4.629 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.007856/0.2655, allocations: 3.978 MB / 450.9 MB, free: 0.5859 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.2655, allocations: 8.031 kB / 450.9 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002716/0.2683, allocations: 0.5346 MB / 451.5 MB, free: 40 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006581/0.2749, allocations: 2.493 MB / 453.9 MB, free: 13.5 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002881/0.2752, allocations: 267 kB / 454.2 MB, free: 13.23 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009127/0.2761, allocations: 355.9 kB / 454.6 MB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01552/0.2917, allocations: 5.017 MB / 459.6 MB, free: 7.801 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001484/0.2918, allocations: 8 kB / 459.6 MB, free: 7.793 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007565/0.2926, allocations: 140 kB / 459.7 MB, free: 7.656 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003092/0.293, allocations: 187 kB / 459.9 MB, free: 7.473 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01433/0.3073, allocations: 4.294 MB / 464.2 MB, free: 3.172 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04149/0.3488, allocations: 14.99 MB / 479.2 MB, free: 3.852 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007841/0.3567, allocations: 4.191 MB / 483.4 MB, free: 15.36 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005518/0.3623, allocations: 2.002 MB / 485.4 MB, free: 13.36 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004316/0.3627, allocations: 131.1 kB / 485.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.591e-05/0.3628, allocations: 56.56 kB / 485.6 MB, free: 13.15 MB / 362.7 MB Notification: Performance of pre-optimization done (n=198): time 6.603e-06/0.3628, allocations: 0 / 485.6 MB, free: 13.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=218): time 0.03242/0.3953, allocations: 10.06 MB / 495.6 MB, free: 2.973 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.903e-05/0.3954, allocations: 77.41 kB / 495.7 MB, free: 2.887 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006489/0.4019, allocations: 2.49 MB / 498.2 MB, free: 384 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004425/0.4024, allocations: 61.7 kB / 498.2 MB, free: 316 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001965/0.4044, allocations: 1.623 MB / 499.9 MB, free: 14.66 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001146/0.4055, allocations: 0.7277 MB / 0.4889 GB, free: 13.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002966/0.4059, allocations: 44 kB / 0.4889 GB, free: 13.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003279/0.4062, allocations: 402.6 kB / 0.4893 GB, free: 13.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002519/0.4087, allocations: 1.301 MB / 0.4906 GB, free: 12.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002862/0.4116, allocations: 1.782 MB / 0.4923 GB, free: 10.21 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005992/0.4176, allocations: 3.223 MB / 0.4954 GB, free: 6.801 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.52e-05/0.4177, allocations: 4 kB / 0.4955 GB, free: 6.797 MB / 378.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.008115/0.4258, allocations: 4.075 MB / 0.4994 GB, free: 2.695 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.89e-05/0.4258, allocations: 12 kB / 0.4994 GB, free: 2.684 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.436e-05/0.4259, allocations: 12 kB / 0.4995 GB, free: 2.672 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002881/0.4288, allocations: 0.8799 MB / 0.5003 GB, free: 1.777 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002082/0.4309, allocations: 0.5382 MB / 0.5008 GB, free: 1.238 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1862/0.617, allocations: 8.724 MB / 0.5094 GB, free: 83.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002392/0.6195, allocations: 125.8 kB / 0.5095 GB, free: 83.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000203/0.6197, allocations: 90.92 kB / 0.5096 GB, free: 83.82 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.002288/0.622, allocations: 1.212 MB / 0.5107 GB, free: 83.24 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007074/0.6227, allocations: 270 kB / 0.511 GB, free: 83.24 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006257/0.629, allocations: 3.738 MB / 0.5147 GB, free: 81.78 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.932e-05/0.6291, allocations: 19.72 kB / 0.5147 GB, free: 81.78 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/0.6291, allocations: 7.844 kB / 0.5147 GB, free: 81.78 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.837e-05/0.6291, allocations: 10.88 kB / 0.5147 GB, free: 81.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01214/0.6412, allocations: 8.102 MB / 0.5226 GB, free: 77.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.638e-06/0.6413, allocations: 7.047 kB / 0.5226 GB, free: 77.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001489/0.6428, allocations: 382.7 kB / 0.523 GB, free: 77.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0028/0.6456, allocations: 0.9295 MB / 0.5239 GB, free: 76.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000169/0.6458, allocations: 56.72 kB / 0.5239 GB, free: 76.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008683/0.6545, allocations: 10.21 MB / 0.5339 GB, free: 66.04 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.6545, allocations: 11.94 kB / 0.5339 GB, free: 66.03 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007421/0.662, allocations: 5.525 MB / 0.5393 GB, free: 60.58 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001773/0.6638, allocations: 0.6467 MB / 0.5399 GB, free: 59.99 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005144/0.6643, allocations: 51.98 kB / 0.54 GB, free: 59.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0013/0.6656, allocations: 127.9 kB / 0.5401 GB, free: 59.81 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000403/0.666, allocations: 181.7 kB / 0.5403 GB, free: 59.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000136/0.6662, allocations: 56.08 kB / 0.5403 GB, free: 59.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002334/0.6685, allocations: 1.715 MB / 0.542 GB, free: 57.85 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.6685, allocations: 4 kB / 0.542 GB, free: 57.85 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00228/0.6708, allocations: 0.8033 MB / 0.5428 GB, free: 57.05 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.0005201/0.6713, allocations: 243.3 kB / 0.543 GB, free: 56.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005248/0.6766, allocations: 3.884 MB / 0.5468 GB, free: 52.86 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.6766, allocations: 4.188 kB / 0.5468 GB, free: 52.86 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003163/0.6798, allocations: 2.493 MB / 0.5493 GB, free: 50.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004159/0.684, allocations: 0.7425 MB / 0.55 GB, free: 49.56 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01171/0.6957, allocations: 9.112 MB / 0.5589 GB, free: 40.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001881/0.6976, allocations: 2.723 MB / 0.5616 GB, free: 37.65 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001021/0.6987, allocations: 187.4 kB / 0.5617 GB, free: 37.47 MB / 378.7 MB Notification: Performance of SimCode: time 8.82e-07/0.6987, allocations: 0 / 0.5617 GB, free: 37.47 MB / 378.7 MB Notification: Performance of Templates: time 0.3445/1.043, allocations: 141.2 MB / 0.6996 GB, free: 150.3 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/InductionMachines/IMC_Transformer/IMC_Transformer.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches