Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.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.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_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001612/0.001612, allocations: 110.6 kB / 17.29 MB, free: 6.219 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.001731/0.001731, allocations: 193.3 kB / 18.21 MB, free: 5.293 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.354/1.354, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0011/0.0011, allocations: 47.19 kB / 300.8 MB, free: 6.207 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08585/0.08697, allocations: 49.43 MB / 350.2 MB, free: 4.766 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer): time 0.01326/0.1003, allocations: 12.77 MB / 363 MB, free: 7.934 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00773/0.108, allocations: 4.144 MB / 367.1 MB, free: 3.777 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002276/0.1104, allocations: 79.62 kB / 367.2 MB, free: 3.699 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003027/0.1135, allocations: 0.847 MB / 368.1 MB, free: 2.848 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004145/0.1176, allocations: 1.069 MB / 369.1 MB, free: 1.773 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001495/0.1191, allocations: 475.5 kB / 369.6 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1705/0.2896, allocations: 4.609 MB / 374.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004708/0.2944, allocations: 3.685 MB / 377.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004403/0.2988, allocations: 2.13 MB / 380 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004307/0.3031, allocations: 2.626 MB / 382.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001257/0.3044, allocations: 0.5526 MB / 383.2 MB, free: 9.305 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001823/0.3062, allocations: 0.6382 MB / 383.8 MB, free: 9.293 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00157/0.3078, allocations: 1.52 MB / 385.4 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003724/0.3115, allocations: 2.487 MB / 387.9 MB, free: 6.906 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005233/0.3168, allocations: 6.215 MB / 394.1 MB, free: 3.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.754e-06/0.3168, allocations: 0 / 394.1 MB, free: 3.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.3168, allocations: 0 / 394.1 MB, free: 3.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001933/0.317, allocations: 0 / 394.1 MB, free: 3.91 MB / 302.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.008486/0.3255, allocations: 4.7 MB / 398.8 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.3256, allocations: 9.062 kB / 398.8 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001175/0.3268, allocations: 0.4971 MB / 399.3 MB, free: 0.5547 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003715/0.3305, allocations: 2.492 MB / 401.8 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001828/0.3307, allocations: 262.2 kB / 402 MB, free: 14.2 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00054/0.3312, allocations: 363.7 kB / 402.4 MB, free: 13.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008315/0.3396, allocations: 5.027 MB / 407.4 MB, free: 8.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.713e-05/0.3397, allocations: 7.906 kB / 407.4 MB, free: 8.762 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003404/0.34, allocations: 143.4 kB / 407.5 MB, free: 8.625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001769/0.3402, allocations: 186.2 kB / 407.7 MB, free: 8.445 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007224/0.3474, allocations: 4.297 MB / 412 MB, free: 4.152 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02361/0.3711, allocations: 14.89 MB / 426.9 MB, free: 5.219 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004403/0.3755, allocations: 4.183 MB / 431.1 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003073/0.3786, allocations: 2.001 MB / 433.1 MB, free: 14.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002904/0.3789, allocations: 130 kB / 433.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.626e-05/0.379, allocations: 60.56 kB / 433.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of pre-optimization done (n=198): time 3.967e-06/0.379, allocations: 0 / 433.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=218): time 0.02039/0.3994, allocations: 9.953 MB / 443.2 MB, free: 4.477 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.697e-05/0.3995, allocations: 73.41 kB / 443.3 MB, free: 4.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004094/0.4036, allocations: 2.499 MB / 445.8 MB, free: 1.875 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001895/0.4038, allocations: 61.7 kB / 445.9 MB, free: 1.809 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001143/0.4049, allocations: 1.624 MB / 447.5 MB, free: 176 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000613/0.4055, allocations: 0.7361 MB / 448.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000748/0.4063, allocations: 412.4 kB / 448.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.898e-05/0.4064, allocations: 301.1 kB / 448.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002068/0.4085, allocations: 1.304 MB / 450.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002336/0.4108, allocations: 1.778 MB / 452 MB, free: 11.46 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004477/0.4153, allocations: 3.212 MB / 455.2 MB, free: 8.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.119e-05/0.4153, allocations: 7.938 kB / 455.2 MB, free: 8.062 MB / 366.1 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.006998/0.4223, allocations: 4.068 MB / 459.3 MB, free: 3.969 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.963e-05/0.4224, allocations: 16.03 kB / 459.3 MB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.395e-05/0.4224, allocations: 12 kB / 459.3 MB, free: 3.941 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00296/0.4254, allocations: 0.8813 MB / 460.2 MB, free: 3.047 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002124/0.4275, allocations: 0.5305 MB / 460.7 MB, free: 2.516 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01038/0.4379, allocations: 9.494 MB / 470.2 MB, free: 8.613 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002125/0.4401, allocations: 123.8 kB / 470.4 MB, free: 8.492 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003015/0.4404, allocations: 88 kB / 470.4 MB, free: 8.406 MB / 382.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 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * 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 (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,25,77.8%), (2,12,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002226/0.4426, allocations: 1.208 MB / 471.7 MB, free: 7.188 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000692/0.4433, allocations: 276.7 kB / 471.9 MB, free: 6.914 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00637/0.4497, allocations: 3.715 MB / 475.6 MB, free: 3.164 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.77e-05/0.4498, allocations: 20 kB / 475.7 MB, free: 3.145 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/0.4498, allocations: 8 kB / 475.7 MB, free: 3.137 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.158e-05/0.4498, allocations: 11.95 kB / 475.7 MB, free: 3.125 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01401/0.4638, allocations: 8.082 MB / 483.8 MB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/0.4639, allocations: 4.344 kB / 483.8 MB, free: 10.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00172/0.4656, allocations: 387.5 kB / 484.1 MB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003315/0.4689, allocations: 0.9407 MB / 485.1 MB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002517/0.4692, allocations: 51.98 kB / 485.1 MB, free: 9.586 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01183/0.481, allocations: 11.09 MB / 496.2 MB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.4811, allocations: 8.031 kB / 496.2 MB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009215/0.4903, allocations: 5.51 MB / 0.49 GB, free: 8.363 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001598/0.4919, allocations: 0.6304 MB / 0.4906 GB, free: 7.711 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007568/0.4927, allocations: 51.98 kB / 0.4906 GB, free: 7.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001743/0.4944, allocations: 115.9 kB / 0.4908 GB, free: 7.547 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004695/0.4949, allocations: 173.7 kB / 0.4909 GB, free: 7.375 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001765/0.4951, allocations: 63.98 kB / 0.491 GB, free: 7.312 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003012/0.4981, allocations: 1.731 MB / 0.4927 GB, free: 5.57 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.4e-07/0.4982, allocations: 3.938 kB / 0.4927 GB, free: 5.566 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002948/0.5011, allocations: 0.8046 MB / 0.4935 GB, free: 4.762 MB / 414.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 (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,25,88.9%), (2,12,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006433/0.5018, allocations: 231.8 kB / 0.4937 GB, free: 4.535 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01097/0.5127, allocations: 5.708 MB / 0.4993 GB, free: 14.75 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/0.5128, allocations: 4 kB / 0.4993 GB, free: 14.74 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003861/0.5166, allocations: 2.475 MB / 0.5017 GB, free: 12.2 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003937/0.5206, allocations: 0.7842 MB / 0.5024 GB, free: 11.42 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01424/0.5349, allocations: 9.367 MB / 0.5116 GB, free: 2.012 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002843/0.5377, allocations: 2.726 MB / 0.5143 GB, free: 15.26 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009721/0.5387, allocations: 191.4 kB / 0.5144 GB, free: 15.07 MB / 446.1 MB Notification: Performance of SimCode: time 2.024e-06/0.5387, allocations: 0 / 0.5144 GB, free: 15.07 MB / 446.1 MB Notification: Performance of Templates: time 0.2652/0.804, allocations: 141.6 MB / 0.6527 GB, free: 41.27 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/Transformers/IMC_Transformer/IMC_Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.Transformers.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches