Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|// aimc.stator.zeroInductor.i0|aimc.is.1.|aimc.is.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001574/0.001574, allocations: 180.3 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.42/1.42, allocations: 205.3 MB / 214.4 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008126/0.0008127, allocations: 90.22 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.881e-05/1.897e-05, allocations: 4 kB / 315.5 MB, free: 22.71 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1246, allocations: 47.58 MB / 363.1 MB, free: 7.066 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3435/0.4682, allocations: 117.7 MB / 480.7 MB, free: 10.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002141/0.4684, allocations: 86.08 kB / 480.8 MB, free: 10.48 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5274/0.9958, allocations: 131.3 MB / 0.5978 GB, free: 85.5 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.9959, allocations: 0 / 0.5978 GB, free: 85.5 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0003672/0.9963, allocations: 129.3 kB / 0.5979 GB, free: 85.48 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01413/1.01, allocations: 4.773 MB / 0.6026 GB, free: 82.48 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.89e-05/1.01, allocations: 8.688 kB / 0.6026 GB, free: 82.48 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005617/1.016, allocations: 0.9732 MB / 0.6035 GB, free: 81.76 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009856/1.026, allocations: 4.483 MB / 0.6079 GB, free: 77.29 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001876/1.026, allocations: 160 kB / 0.6081 GB, free: 77.13 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001333/1.028, allocations: 287.9 kB / 0.6083 GB, free: 76.85 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0108/1.038, allocations: 5.111 MB / 0.6133 GB, free: 71.73 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0163/1.055, allocations: 5.896 MB / 0.6191 GB, free: 65.65 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002696/1.055, allocations: 7.906 kB / 0.6191 GB, free: 65.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002003/1.057, allocations: 4 kB / 0.6191 GB, free: 65.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002778/1.057, allocations: 241.8 kB / 0.6193 GB, free: 65.4 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04155/1.099, allocations: 20.02 MB / 0.6389 GB, free: 45.14 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008515/1.107, allocations: 9.701 MB / 0.6484 GB, free: 34.42 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003683/1.111, allocations: 2.306 MB / 0.6506 GB, free: 32.11 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01341/1.125, allocations: 6.309 MB / 0.6568 GB, free: 25.76 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.199e-05/1.125, allocations: 60.56 kB / 0.6568 GB, free: 25.69 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 7.114e-06/1.125, allocations: 0 / 0.6568 GB, free: 25.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=224): time 0.01469/1.14, allocations: 7.241 MB / 0.6639 GB, free: 18.36 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.793e-05/1.14, allocations: 77.36 kB / 0.664 GB, free: 18.28 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005524/1.145, allocations: 2.103 MB / 0.666 GB, free: 16.16 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002139/1.145, allocations: 25.7 kB / 0.666 GB, free: 16.13 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001791/1.147, allocations: 2.173 MB / 0.6682 GB, free: 13.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007026/1.148, allocations: 0.7081 MB / 0.6689 GB, free: 13.21 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002058/1.148, allocations: 0 / 0.6689 GB, free: 13.21 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001624/1.148, allocations: 407 kB / 0.6692 GB, free: 12.81 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001586/1.15, allocations: 1.157 MB / 0.6704 GB, free: 11.65 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001827/1.152, allocations: 1.717 MB / 0.6721 GB, free: 9.691 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002349/1.154, allocations: 1.583 MB / 0.6736 GB, free: 8.109 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.642e-05/1.154, allocations: 11.94 kB / 0.6736 GB, free: 8.098 MB / 410.7 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005904/1.16, allocations: 3.878 MB / 0.6774 GB, free: 4.176 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.388e-05/1.16, allocations: 12 kB / 0.6774 GB, free: 4.164 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.857e-05/1.16, allocations: 24.27 kB / 0.6774 GB, free: 4.141 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00162/1.162, allocations: 0.6436 MB / 0.6781 GB, free: 3.484 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002223/1.164, allocations: 0.5499 MB / 0.6786 GB, free: 2.934 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3165/1.481, allocations: 9.598 MB / 0.688 GB, free: 73.29 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002766/1.483, allocations: 60.05 kB / 0.688 GB, free: 73.29 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004182/1.484, allocations: 99.97 kB / 0.6881 GB, free: 73.29 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (269): * Single equations (assignments): 264 * 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 {(1,100.0%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004901/1.484, allocations: 170.3 kB / 0.6883 GB, free: 73.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001012/1.485, allocations: 278.2 kB / 0.6886 GB, free: 73.18 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007729/1.493, allocations: 3.674 MB / 0.6921 GB, free: 72.81 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-05/1.493, allocations: 25.05 kB / 0.6922 GB, free: 72.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.681e-05/1.493, allocations: 11 kB / 0.6922 GB, free: 72.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.013e-05/1.493, allocations: 14.53 kB / 0.6922 GB, free: 72.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01548/1.509, allocations: 7.674 MB / 0.6997 GB, free: 72.12 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.205e-05/1.509, allocations: 0.5625 kB / 0.6997 GB, free: 72.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001575/1.51, allocations: 340.3 kB / 0.7 GB, free: 72.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002101/1.512, allocations: 0.8058 MB / 0.7008 GB, free: 72.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000196/1.513, allocations: 32.03 kB / 0.7008 GB, free: 72.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.013/1.526, allocations: 13.85 MB / 0.7143 GB, free: 64.57 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.071e-06/1.526, allocations: 0 / 0.7143 GB, free: 64.57 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009147/1.535, allocations: 5.553 MB / 0.7198 GB, free: 63.83 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001988/1.537, allocations: 0.6434 MB / 0.7204 GB, free: 63.65 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009838/1.538, allocations: 20 kB / 0.7204 GB, free: 63.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001993/1.54, allocations: 84.83 kB / 0.7205 GB, free: 63.65 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005018/1.54, allocations: 191.3 kB / 0.7207 GB, free: 63.65 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000191/1.541, allocations: 63.95 kB / 0.7207 GB, free: 63.65 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003333/1.544, allocations: 1.579 MB / 0.7223 GB, free: 63.41 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.51e-07/1.544, allocations: 3.656 kB / 0.7223 GB, free: 63.41 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0042/1.548, allocations: 0.8549 MB / 0.7231 GB, free: 63.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.zeroInductor.i0,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,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 (154): * Single equations (assignments): 148 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(3,88.9%) 25,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009338/1.549, allocations: 417.1 kB / 0.7235 GB, free: 63.28 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005575/1.555, allocations: 3.561 MB / 0.727 GB, free: 61.62 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.765e-06/1.555, allocations: 2.844 kB / 0.727 GB, free: 61.62 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003434/1.558, allocations: 2.449 MB / 0.7294 GB, free: 60.29 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004076/1.562, allocations: 0.6063 MB / 0.73 GB, free: 60.15 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01868/1.581, allocations: 7.55 MB / 0.7374 GB, free: 57.21 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005277/1.586, allocations: 3.514 MB / 0.7408 GB, free: 55.87 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.003171/1.59, allocations: 0.6783 MB / 0.7414 GB, free: 55.8 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008877/1.59, allocations: 171.8 kB / 0.7416 GB, free: 55.79 MB / 410.7 MB Notification: Performance of SimCode: time 1.633e-06/1.591, allocations: 0 / 0.7416 GB, free: 55.79 MB / 410.7 MB Notification: Performance of Templates: time 0.07157/1.662, allocations: 38.64 MB / 0.7794 GB, free: 38.89 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Transformer/AIMC_Transformer.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches