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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009463/0.0009526, allocations: 96.8 kB / 16.31 MB, free: 6.461 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.001076/0.001077, allocations: 178.2 kB / 17.2 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.463/1.463, allocations: 223.2 MB / 241.1 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002864/0.0002867, allocations: 6.469 kB / 300.7 MB, free: 6.012 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1191, allocations: 50.43 MB / 351.1 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_Transformer): time 0.01149/0.1306, allocations: 10.4 MB / 361.5 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00893/0.1396, allocations: 4.078 MB / 365.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00274/0.1424, allocations: 67.62 kB / 365.7 MB, free: 13.11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003021/0.1454, allocations: 0.7969 MB / 366.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004244/0.1497, allocations: 0.997 MB / 367.5 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001555/0.1512, allocations: 335.4 kB / 367.8 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00514/0.1564, allocations: 2.943 MB / 370.7 MB, free: 8.031 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003007/0.1594, allocations: 2.586 MB / 373.3 MB, free: 5.398 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00226/0.1617, allocations: 1.436 MB / 374.8 MB, free: 3.957 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002502/0.1642, allocations: 1.798 MB / 376.6 MB, free: 2.152 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004117/0.1646, allocations: 240 kB / 376.8 MB, free: 1.918 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008264/0.1655, allocations: 311.8 kB / 377.1 MB, free: 1.613 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009643/0.1664, allocations: 1.071 MB / 378.2 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000892/0.1673, allocations: 0.8395 MB / 379 MB, free: 15.69 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004949/0.1723, allocations: 5.956 MB / 385 MB, free: 9.719 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.1723, allocations: 0 / 385 MB, free: 9.719 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.985e-06/0.1723, allocations: 0 / 385 MB, free: 9.719 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001758/0.1725, allocations: 0 / 385 MB, free: 9.719 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.008998/0.1815, allocations: 3.982 MB / 389 MB, free: 5.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.384e-05/0.1816, allocations: 11.97 kB / 389 MB, free: 5.66 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001651/0.1833, allocations: 0.4947 MB / 389.5 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004596/0.1879, allocations: 2.423 MB / 391.9 MB, free: 2.688 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001999/0.1881, allocations: 263.1 kB / 392.1 MB, free: 2.43 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005052/0.1886, allocations: 363.8 kB / 392.5 MB, free: 2.074 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009069/0.1977, allocations: 4.978 MB / 397.5 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.548e-05/0.1978, allocations: 7.906 kB / 397.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003497/0.1982, allocations: 147.9 kB / 397.6 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002135/0.1984, allocations: 183 kB / 397.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007813/0.2062, allocations: 4.302 MB / 402.1 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02865/0.2349, allocations: 14.93 MB / 417 MB, free: 9.137 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005722/0.2407, allocations: 4.191 MB / 421.2 MB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003683/0.2411, allocations: 131.1 kB / 421.4 MB, free: 4.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.144e-05/0.2412, allocations: 57.11 kB / 421.4 MB, free: 4.438 MB / 350.1 MB Notification: Performance of pre-optimization done (n=198): time 5.109e-06/0.2412, allocations: 3.938 kB / 421.4 MB, free: 4.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=218): time 0.2783/0.5195, allocations: 10.33 MB / 431.7 MB, free: 60.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.469e-05/0.5196, allocations: 75.91 kB / 431.8 MB, free: 60.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00438/0.524, allocations: 2.441 MB / 434.3 MB, free: 59.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003908/0.5244, allocations: 63.8 kB / 434.3 MB, free: 59.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001322/0.5258, allocations: 1.618 MB / 435.9 MB, free: 59.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008099/0.5266, allocations: 0.7263 MB / 436.7 MB, free: 58.67 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001264/0.5267, allocations: 46.91 kB / 436.7 MB, free: 58.67 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.5269, allocations: 397.5 kB / 437.1 MB, free: 58.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002096/0.529, allocations: 1.322 MB / 438.4 MB, free: 58.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002367/0.5314, allocations: 1.787 MB / 440.2 MB, free: 57.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002271/0.5337, allocations: 1.574 MB / 441.8 MB, free: 56.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.395e-05/0.5337, allocations: 3.906 kB / 441.8 MB, free: 56.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006552/0.5402, allocations: 4.103 MB / 445.9 MB, free: 54.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.831e-05/0.5403, allocations: 18.17 kB / 445.9 MB, free: 54.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.881e-05/0.5403, allocations: 12.69 kB / 445.9 MB, free: 54.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00269/0.543, allocations: 0.8779 MB / 446.8 MB, free: 54.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002127/0.5452, allocations: 0.5235 MB / 447.3 MB, free: 54.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00805/0.5533, allocations: 8.941 MB / 456.3 MB, free: 47.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002393/0.5557, allocations: 138.8 kB / 456.4 MB, free: 47.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002663/0.556, allocations: 84 kB / 456.5 MB, free: 47.16 MB / 350.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 (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.002192/0.5582, allocations: 1.215 MB / 457.7 MB, free: 45.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006329/0.5588, allocations: 272.7 kB / 458 MB, free: 45.66 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005086/0.5639, allocations: 3.755 MB / 461.7 MB, free: 41.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.53e-05/0.5639, allocations: 25.03 kB / 461.7 MB, free: 41.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.564, allocations: 4 kB / 461.7 MB, free: 41.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.623e-05/0.564, allocations: 14.73 kB / 461.8 MB, free: 41.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01211/0.5761, allocations: 8.081 MB / 469.8 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.979e-06/0.5761, allocations: 0 / 469.8 MB, free: 33.7 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001502/0.5777, allocations: 391.8 kB / 470.2 MB, free: 33.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002724/0.5804, allocations: 0.919 MB / 471.1 MB, free: 32.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001763/0.5806, allocations: 51.98 kB / 471.2 MB, free: 32.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008643/0.5892, allocations: 10.45 MB / 481.6 MB, free: 21.38 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.5893, allocations: 4 kB / 481.6 MB, free: 21.38 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008444/0.5977, allocations: 5.792 MB / 487.4 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002267/0.6, allocations: 0.6304 MB / 488.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004674/0.6005, allocations: 51.98 kB / 488.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001257/0.6018, allocations: 131.9 kB / 488.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004142/0.6022, allocations: 181.7 kB / 488.4 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001233/0.6023, allocations: 59.98 kB / 488.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00224/0.6046, allocations: 1.676 MB / 490.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6046, allocations: 0 / 490.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002733/0.6073, allocations: 0.7957 MB / 491 MB, free: 11.9 MB / 350.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 (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%) 26,(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.0005039/0.6078, allocations: 209.7 kB / 491.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00512/0.613, allocations: 3.922 MB / 495.1 MB, free: 7.695 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/0.613, allocations: 0 / 495.1 MB, free: 7.695 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003112/0.6161, allocations: 2.496 MB / 497.6 MB, free: 5.129 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003351/0.6195, allocations: 0.7183 MB / 498.3 MB, free: 4.414 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01262/0.6321, allocations: 9.119 MB / 0.4955 GB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00246/0.6346, allocations: 2.838 MB / 0.4983 GB, free: 8.387 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002376/0.637, allocations: 0.6865 MB / 0.499 GB, free: 7.695 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005251/0.6375, allocations: 179.4 kB / 0.4991 GB, free: 7.52 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.6375, allocations: 0 / 0.4991 GB, free: 7.52 MB / 366.1 MB Notification: Performance of Templates: time 0.07446/0.712, allocations: 42.22 MB / 0.5404 GB, free: 13.69 MB / 414.1 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