Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001496/0.001496, allocations: 175.2 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 221.3 MB / 235.5 MB, free: 2.938 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008456/0.0008456, allocations: 99.78 kB / 286.5 MB, free: 216 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.145e-05/2.147e-05, allocations: 4 kB / 343.8 MB, free: 4.285 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.087/0.08703, allocations: 50.41 MB / 394.3 MB, free: 1.828 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3046/0.3917, allocations: 112.1 MB / 0.4944 GB, free: 7.387 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002993/0.392, allocations: 87.78 kB / 0.4945 GB, free: 7.305 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4058/0.7979, allocations: 93.78 MB / 0.5861 GB, free: 95.71 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.933e-06/0.7979, allocations: 7.906 kB / 0.5861 GB, free: 95.71 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002025/0.7981, allocations: 103.7 kB / 0.5862 GB, free: 95.68 MB / 426.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.006008/0.8041, allocations: 3.558 MB / 0.5897 GB, free: 94.21 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.583e-05/0.8042, allocations: 11.47 kB / 0.5897 GB, free: 94.21 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001292/0.8055, allocations: 0.5025 MB / 0.5902 GB, free: 93.98 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004057/0.8096, allocations: 2.54 MB / 0.5927 GB, free: 92.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001294/0.8097, allocations: 261.2 kB / 0.5929 GB, free: 92.55 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004724/0.8102, allocations: 360.5 kB / 0.5933 GB, free: 92.43 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006457/0.8166, allocations: 4.827 MB / 0.598 GB, free: 90.19 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.163e-05/0.8167, allocations: 11.19 kB / 0.598 GB, free: 90.18 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003257/0.8171, allocations: 153.1 kB / 0.5981 GB, free: 90.07 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001214/0.8172, allocations: 179.5 kB / 0.5983 GB, free: 90.05 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005258/0.8225, allocations: 3.904 MB / 0.6021 GB, free: 88.5 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0191/0.8416, allocations: 14.93 MB / 0.6167 GB, free: 80.94 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003336/0.8449, allocations: 4.151 MB / 0.6208 GB, free: 78.11 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002116/0.8471, allocations: 1.831 MB / 0.6225 GB, free: 77.47 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002846/0.8474, allocations: 154 kB / 0.6227 GB, free: 77.37 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.628e-05/0.8474, allocations: 60.06 kB / 0.6228 GB, free: 77.31 MB / 426.7 MB Notification: Performance of pre-optimization done (n=201): time 3.677e-06/0.8474, allocations: 0 / 0.6228 GB, free: 77.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=221): time 0.01476/0.8622, allocations: 8.335 MB / 0.6309 GB, free: 70.28 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.8623, allocations: 77.39 kB / 0.631 GB, free: 70.19 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00275/0.865, allocations: 2.188 MB / 0.6331 GB, free: 67.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001565/0.8652, allocations: 65.7 kB / 0.6332 GB, free: 67.91 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000717/0.8659, allocations: 1.604 MB / 0.6347 GB, free: 66.29 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003854/0.8663, allocations: 0.7389 MB / 0.6355 GB, free: 65.55 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001193/0.8664, allocations: 48 kB / 0.6355 GB, free: 65.51 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.849e-05/0.8665, allocations: 394.5 kB / 0.6359 GB, free: 65.12 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001473/0.868, allocations: 1.242 MB / 0.6371 GB, free: 63.87 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001642/0.8697, allocations: 1.659 MB / 0.6387 GB, free: 62.05 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001707/0.8714, allocations: 1.489 MB / 0.6402 GB, free: 60.55 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.803e-06/0.8714, allocations: 4 kB / 0.6402 GB, free: 60.55 MB / 426.7 MB Notification: Performance of matching and sorting (n=291) (initialization): time 0.0052/0.8766, allocations: 3.911 MB / 0.644 GB, free: 56.62 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.77e-05/0.8767, allocations: 13.56 kB / 0.644 GB, free: 56.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.8767, allocations: 12 kB / 0.644 GB, free: 56.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001612/0.8783, allocations: 0.7623 MB / 0.6448 GB, free: 55.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001898/0.8802, allocations: 0.5305 MB / 0.6453 GB, free: 55.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00729/0.8875, allocations: 8.703 MB / 0.6538 GB, free: 46.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001797/0.8893, allocations: 123.9 kB / 0.6539 GB, free: 46.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001661/0.8895, allocations: 83.98 kB / 0.654 GB, free: 45.99 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (248): * Single equations (assignments): 243 * 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 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003427/0.8899, allocations: 233.7 kB / 0.6542 GB, free: 45.76 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003673/0.8902, allocations: 284.6 kB / 0.6545 GB, free: 45.48 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005045/0.8953, allocations: 3.637 MB / 0.658 GB, free: 41.81 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.268e-05/0.8953, allocations: 23.95 kB / 0.658 GB, free: 41.79 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.536e-06/0.8953, allocations: 8 kB / 0.658 GB, free: 41.78 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.481e-05/0.8953, allocations: 7.969 kB / 0.6581 GB, free: 41.77 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01041/0.9058, allocations: 7.946 MB / 0.6658 GB, free: 33.76 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.995e-06/0.9058, allocations: 4 kB / 0.6658 GB, free: 33.75 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001524/0.9073, allocations: 391.7 kB / 0.6662 GB, free: 33.37 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001825/0.9092, allocations: 0.82 MB / 0.667 GB, free: 32.54 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001352/0.9093, allocations: 55.97 kB / 0.667 GB, free: 32.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008007/0.9173, allocations: 10.22 MB / 0.677 GB, free: 21.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.9173, allocations: 7.938 kB / 0.677 GB, free: 21.74 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006318/0.9237, allocations: 5.602 MB / 0.6825 GB, free: 16 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001259/0.9249, allocations: 0.642 MB / 0.6831 GB, free: 15.34 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003365/0.9253, allocations: 51.95 kB / 0.6832 GB, free: 15.29 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/0.9266, allocations: 123.9 kB / 0.6833 GB, free: 15.16 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003373/0.9269, allocations: 185.8 kB / 0.6835 GB, free: 14.98 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001319/0.927, allocations: 71.98 kB / 0.6835 GB, free: 14.91 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002054/0.9291, allocations: 1.675 MB / 0.6852 GB, free: 13.22 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9291, allocations: 0 / 0.6852 GB, free: 13.22 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002183/0.9313, allocations: 0.8282 MB / 0.686 GB, free: 12.39 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (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,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (178): * Single equations (assignments): 173 * 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 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005193/0.9318, allocations: 382.8 kB / 0.6864 GB, free: 12.05 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004364/0.9362, allocations: 3.771 MB / 0.69 GB, free: 8.199 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.727e-06/0.9362, allocations: 4 kB / 0.69 GB, free: 8.195 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002793/0.939, allocations: 2.444 MB / 0.6924 GB, free: 5.676 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002603/0.9416, allocations: 0.7373 MB / 0.6931 GB, free: 4.961 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009241/0.9509, allocations: 6.439 MB / 0.6994 GB, free: 14.45 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002683/0.9536, allocations: 2.851 MB / 0.7022 GB, free: 11.57 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002319/0.9559, allocations: 0.6749 MB / 0.7029 GB, free: 10.89 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000622/0.9566, allocations: 175.4 kB / 0.703 GB, free: 10.73 MB / 442.7 MB Notification: Performance of SimCode: time 5.71e-07/0.9566, allocations: 3.938 kB / 0.703 GB, free: 10.72 MB / 442.7 MB Notification: Performance of Templates: time 0.2712/1.228, allocations: 46.57 MB / 0.7485 GB, free: 94.72 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches