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.001535/0.001535, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.421/1.421, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008659/0.0008657, allocations: 86.64 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.059e-05/3.06e-05, allocations: 4 kB / 322.5 MB, free: 17.34 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09514/0.09518, allocations: 47.58 MB / 370 MB, free: 1.691 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3944/0.4896, allocations: 118.1 MB / 488.1 MB, free: 7.719 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002803/0.49, allocations: 90.44 kB / 488.2 MB, free: 7.672 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5809/1.071, allocations: 133 MB / 0.6066 GB, free: 76.92 MB / 410.7 MB Notification: Performance of FrontEnd: time 4.649e-06/1.071, allocations: 0 / 0.6066 GB, free: 76.92 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008498/1.072, allocations: 119.9 kB / 0.6067 GB, free: 76.8 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.0174/1.089, allocations: 4.772 MB / 0.6114 GB, free: 71.98 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/1.089, allocations: 12.03 kB / 0.6114 GB, free: 71.97 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006532/1.096, allocations: 0.9726 MB / 0.6124 GB, free: 70.99 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01353/1.109, allocations: 4.483 MB / 0.6167 GB, free: 66.53 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004562/1.11, allocations: 363.7 kB / 0.6171 GB, free: 66.18 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002671/1.113, allocations: 482.5 kB / 0.6175 GB, free: 65.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02033/1.133, allocations: 6.612 MB / 0.624 GB, free: 58.92 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002705/1.133, allocations: 7.906 kB / 0.624 GB, free: 58.91 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00206/1.135, allocations: 206.1 kB / 0.6242 GB, free: 58.71 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002661/1.136, allocations: 237.8 kB / 0.6244 GB, free: 58.48 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01525/1.151, allocations: 5.408 MB / 0.6297 GB, free: 53.06 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04534/1.196, allocations: 21 MB / 0.6502 GB, free: 31.79 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008767/1.205, allocations: 9.824 MB / 0.6598 GB, free: 20.94 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003729/1.209, allocations: 2.406 MB / 0.6622 GB, free: 18.53 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01202/1.221, allocations: 6.498 MB / 0.6685 GB, free: 11.99 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.739e-05/1.221, allocations: 60.55 kB / 0.6686 GB, free: 11.92 MB / 410.7 MB Notification: Performance of pre-optimization done (n=217): time 5.731e-06/1.221, allocations: 4 kB / 0.6686 GB, free: 11.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=224): time 0.01292/1.234, allocations: 7.259 MB / 0.6757 GB, free: 4.574 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.919e-05/1.234, allocations: 73.41 kB / 0.6757 GB, free: 4.492 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004617/1.239, allocations: 2.62 MB / 0.6783 GB, free: 1.859 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004211/1.239, allocations: 61.7 kB / 0.6783 GB, free: 1.793 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001372/1.241, allocations: 2.17 MB / 0.6805 GB, free: 15.61 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008381/1.241, allocations: 0.7545 MB / 0.6812 GB, free: 14.86 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001421/1.242, allocations: 52 kB / 0.6812 GB, free: 14.81 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002397/1.242, allocations: 403 kB / 0.6816 GB, free: 14.41 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001958/1.244, allocations: 1.204 MB / 0.6828 GB, free: 13.21 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00232/1.246, allocations: 1.784 MB / 0.6845 GB, free: 11.18 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002284/1.248, allocations: 1.505 MB / 0.686 GB, free: 9.676 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-05/1.248, allocations: 4 kB / 0.686 GB, free: 9.672 MB / 426.7 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.007073/1.256, allocations: 4.03 MB / 0.69 GB, free: 5.598 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.399e-05/1.256, allocations: 16.31 kB / 0.69 GB, free: 5.582 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.969e-05/1.256, allocations: 19.94 kB / 0.69 GB, free: 5.562 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001753/1.257, allocations: 0.6592 MB / 0.6906 GB, free: 4.891 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002251/1.26, allocations: 0.5461 MB / 0.6912 GB, free: 4.344 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3456/1.605, allocations: 9.986 MB / 0.7009 GB, free: 81.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003312/1.609, allocations: 115.4 kB / 0.701 GB, free: 81.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003638/1.609, allocations: 100.3 kB / 0.7011 GB, free: 81.82 MB / 426.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.0006464/1.61, allocations: 253 kB / 0.7014 GB, free: 81.71 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009294/1.611, allocations: 313.4 kB / 0.7017 GB, free: 81.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007937/1.619, allocations: 3.777 MB / 0.7054 GB, free: 81.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.954e-05/1.619, allocations: 21.09 kB / 0.7054 GB, free: 81.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.86e-05/1.619, allocations: 14.86 kB / 0.7054 GB, free: 81.33 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.187e-05/1.619, allocations: 11.97 kB / 0.7054 GB, free: 81.33 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01612/1.635, allocations: 8.391 MB / 0.7136 GB, free: 80.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.251e-05/1.635, allocations: 2.438 kB / 0.7136 GB, free: 80.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001652/1.637, allocations: 340.3 kB / 0.7139 GB, free: 80.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002478/1.639, allocations: 0.8223 MB / 0.7147 GB, free: 80.54 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002095/1.639, allocations: 57.02 kB / 0.7148 GB, free: 80.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.014/1.653, allocations: 14.38 MB / 0.7288 GB, free: 72.66 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/1.653, allocations: 0.875 kB / 0.7288 GB, free: 72.66 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0088/1.662, allocations: 5.659 MB / 0.7343 GB, free: 71.88 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002089/1.664, allocations: 0.6905 MB / 0.735 GB, free: 71.72 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004514/1.665, allocations: 59.61 kB / 0.7351 GB, free: 71.72 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001532/1.666, allocations: 126.8 kB / 0.7352 GB, free: 71.72 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005295/1.667, allocations: 185.1 kB / 0.7354 GB, free: 71.72 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001409/1.667, allocations: 63.94 kB / 0.7354 GB, free: 71.72 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003412/1.67, allocations: 2.005 MB / 0.7374 GB, free: 71.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.3e-07/1.67, allocations: 0.6562 kB / 0.7374 GB, free: 71.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003979/1.674, allocations: 0.9826 MB / 0.7384 GB, free: 71.41 MB / 426.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.0009574/1.675, allocations: 494.7 kB / 0.7388 GB, free: 71.26 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005889/1.681, allocations: 3.727 MB / 0.7425 GB, free: 69.56 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/1.681, allocations: 4.906 kB / 0.7425 GB, free: 69.56 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003428/1.685, allocations: 2.559 MB / 0.745 GB, free: 68.15 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004846/1.69, allocations: 0.8695 MB / 0.7458 GB, free: 67.94 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01467/1.704, allocations: 7.745 MB / 0.7534 GB, free: 64.92 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003295/1.708, allocations: 3.51 MB / 0.7568 GB, free: 63.57 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00297/1.711, allocations: 0.7401 MB / 0.7575 GB, free: 63.49 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005498/1.711, allocations: 197.1 kB / 0.7577 GB, free: 63.48 MB / 426.7 MB Notification: Performance of SimCode: time 2.245e-06/1.711, allocations: 0 / 0.7577 GB, free: 63.48 MB / 426.7 MB Notification: Performance of Templates: time 0.08531/1.796, allocations: 51.52 MB / 0.808 GB, free: 35.55 MB / 426.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