Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.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_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|// aimcE.i_0_s|aimcE.idq_rr.1.|aimcE.idq_rr.2.|aimcE.idq_sr.1.|aimcE.idq_sr.2.|aimcE.is.1.|aimcE.is.2.|aimcM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimcM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimcM.stator.strayReluctance.port_p.Phi.im|aimcM.stator.strayReluctance.port_p.Phi.re|// aimcM.stator.zeroInductor.i0|aimcM.is.1.|aimcM.is.2.|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|// aimcE.i_0_s|aimcE.idq_rr.1.|aimcE.idq_rr.2.|aimcE.idq_sr.1.|aimcE.idq_sr.2.|aimcE.is.1.|aimcE.is.2.|aimcM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|aimcM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|aimcM.stator.strayReluctance.port_p.Phi.im|aimcM.stator.strayReluctance.port_p.Phi.re|// aimcM.stator.zeroInductor.i0|aimcM.is.1.|aimcM.is.2.|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009172/0.0009175, allocations: 183 kB / 18.05 MB, free: 3.656 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.264/1.264, allocations: 205.4 MB / 224.2 MB, free: 9.02 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.0007369/0.0007369, allocations: 86.42 kB / 272.5 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002803/0.0002804, allocations: 8 kB / 329.5 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1905/0.1908, allocations: 47.57 MB / 377 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.124/0.3149, allocations: 122.6 MB / 499.6 MB, free: 5.867 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002805/0.3152, allocations: 99.95 kB / 499.7 MB, free: 5.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3961/0.7113, allocations: 117.2 MB / 0.6025 GB, free: 15.61 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.7114, allocations: 7.938 kB / 0.6025 GB, free: 15.6 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004084/0.7118, allocations: 127.9 kB / 0.6026 GB, free: 15.48 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1348 * Number of variables: 1348 Notification: Performance of Generate backend data structure: time 0.01294/0.7247, allocations: 5.373 MB / 0.6079 GB, free: 10.02 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.7248, allocations: 12.03 kB / 0.6079 GB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004828/0.7296, allocations: 1.005 MB / 0.6089 GB, free: 8.996 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008945/0.7386, allocations: 4.009 MB / 0.6128 GB, free: 4.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002759/0.7389, allocations: 386.7 kB / 0.6131 GB, free: 4.531 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001138/0.7401, allocations: 0.508 MB / 0.6136 GB, free: 4.023 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.015/0.7551, allocations: 6.89 MB / 0.6204 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002096/0.7553, allocations: 19.84 kB / 0.6204 GB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008249/0.7562, allocations: 216 kB / 0.6206 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003515/0.7565, allocations: 230.2 kB / 0.6208 GB, free: 12.48 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01856/0.7751, allocations: 5.6 MB / 0.6263 GB, free: 6.867 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03488/0.8101, allocations: 21.46 MB / 0.6472 GB, free: 0.9297 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1839/0.994, allocations: 8.745 MB / 0.6558 GB, free: 55.02 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003061/0.9971, allocations: 2.281 MB / 0.658 GB, free: 54.98 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009667/1.007, allocations: 6.21 MB / 0.6641 GB, free: 54.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.132e-05/1.007, allocations: 55.78 kB / 0.6641 GB, free: 54.26 MB / 410.7 MB Notification: Performance of pre-optimization done (n=222): time 3.948e-06/1.007, allocations: 0 / 0.6641 GB, free: 54.26 MB / 410.7 MB Notification: Performance of matching and sorting (n=241): time 0.01988/1.027, allocations: 11.58 MB / 0.6754 GB, free: 52.43 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.266e-05/1.027, allocations: 75.91 kB / 0.6755 GB, free: 52.36 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003992/1.031, allocations: 2.937 MB / 0.6784 GB, free: 52.12 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002206/1.031, allocations: 71.11 kB / 0.6784 GB, free: 52.09 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001098/1.032, allocations: 2.297 MB / 0.6807 GB, free: 51.36 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005131/1.033, allocations: 0.8252 MB / 0.6815 GB, free: 50.84 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/1.033, allocations: 56.59 kB / 0.6815 GB, free: 50.84 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001214/1.033, allocations: 421.9 kB / 0.6819 GB, free: 50.54 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001896/1.035, allocations: 1.357 MB / 0.6833 GB, free: 50.53 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002384/1.037, allocations: 2.116 MB / 0.6853 GB, free: 49.68 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005016/1.042, allocations: 3.677 MB / 0.6889 GB, free: 48.79 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.103e-05/1.042, allocations: 9.25 kB / 0.6889 GB, free: 48.79 MB / 410.7 MB Notification: Performance of matching and sorting (n=367) (initialization): time 0.007104/1.049, allocations: 4.656 MB / 0.6935 GB, free: 48.31 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.836e-05/1.049, allocations: 15.34 kB / 0.6935 GB, free: 48.31 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-05/1.05, allocations: 23.34 kB / 0.6935 GB, free: 48.31 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001581/1.051, allocations: 0.7503 MB / 0.6942 GB, free: 48.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002302/1.053, allocations: 0.6418 MB / 0.6949 GB, free: 48.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009044/1.062, allocations: 13.4 MB / 0.708 GB, free: 38.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002553/1.065, allocations: 155.4 kB / 0.7081 GB, free: 38.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002929/1.065, allocations: 125 kB / 0.7082 GB, free: 38.37 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 103 * Number of states: 0 () * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (324): * Single equations (assignments): 314 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(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: 7 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002661/1.068, allocations: 1.598 MB / 0.7098 GB, free: 37.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005484/1.069, allocations: 322.8 kB / 0.7101 GB, free: 37.41 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006128/1.075, allocations: 4.238 MB / 0.7142 GB, free: 35.57 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.431e-05/1.075, allocations: 22.59 kB / 0.7143 GB, free: 35.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.518e-05/1.075, allocations: 11.38 kB / 0.7143 GB, free: 35.57 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.978e-05/1.075, allocations: 13.2 kB / 0.7143 GB, free: 35.57 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01286/1.088, allocations: 9.152 MB / 0.7232 GB, free: 31.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/1.088, allocations: 3.969 kB / 0.7232 GB, free: 31.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001611/1.089, allocations: 391.9 kB / 0.7236 GB, free: 31.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002208/1.092, allocations: 0.9247 MB / 0.7245 GB, free: 31.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003424/1.092, allocations: 68.53 kB / 0.7246 GB, free: 31.36 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01211/1.104, allocations: 16.56 MB / 0.7407 GB, free: 17.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/1.104, allocations: 6.375 kB / 0.7407 GB, free: 17.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008237/1.112, allocations: 6.096 MB / 0.7467 GB, free: 15.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001657/1.114, allocations: 0.699 MB / 0.7474 GB, free: 14.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005111/1.115, allocations: 61.45 kB / 0.7474 GB, free: 14.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001491/1.116, allocations: 148.6 kB / 0.7476 GB, free: 14.63 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004308/1.117, allocations: 199.9 kB / 0.7478 GB, free: 14.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001505/1.117, allocations: 68.89 kB / 0.7478 GB, free: 14.58 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002898/1.12, allocations: 1.996 MB / 0.7498 GB, free: 13.83 MB / 410.7 MB Notification: Performance of sort global known variables: time 2e-07/1.12, allocations: 0 / 0.7498 GB, free: 13.83 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004682/1.124, allocations: 1.024 MB / 0.7508 GB, free: 13.73 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 14 (aimcM.inertiaRotor.w,aimcM.stator.core.Phi.re,aimcM.stator.core.Phi.im,aimcM.stator.zeroInductor.i0,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimcM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,aimcE.inertiaRotor.w,aimcE.i_0_s,aimcE.idq_sr[1],aimcE.idq_sr[2],aimcE.idq_rr[1],aimcE.idq_rr[2],quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 3 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * 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: 8 * 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: 8 {(2,100.0%) 12,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 1,(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.0007974/1.125, allocations: 459.4 kB / 0.7512 GB, free: 13.58 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.005561/1.131, allocations: 4.586 MB / 0.7557 GB, free: 10.08 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/1.131, allocations: 4 kB / 0.7557 GB, free: 10.07 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003613/1.134, allocations: 3.083 MB / 0.7587 GB, free: 7.25 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005279/1.14, allocations: 0.8428 MB / 0.7595 GB, free: 6.59 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01667/1.156, allocations: 11.86 MB / 0.7711 GB, free: 11.76 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003338/1.16, allocations: 3.43 MB / 0.7745 GB, free: 9.094 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00272/1.162, allocations: 0.7757 MB / 0.7752 GB, free: 8.555 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005662/1.163, allocations: 210 kB / 0.7754 GB, free: 8.363 MB / 426.7 MB Notification: Performance of SimCode: time 6.61e-07/1.163, allocations: 0 / 0.7754 GB, free: 8.363 MB / 426.7 MB Notification: Performance of Templates: time 0.2575/1.421, allocations: 51.23 MB / 0.8254 GB, free: 70.1 MB / 442.7 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_DOL/AIMC_DOL.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_DOL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches