Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.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_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|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|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|aimc.is.1.|aimc.is.2.|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|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002023/0.002023, allocations: 180.5 kB / 17.41 MB, free: 4.383 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.875/2.875, allocations: 205.4 MB / 223.6 MB, free: 9.031 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.001257/0.001257, allocations: 89.36 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007003/0.0007006, allocations: 8 kB / 328.2 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5171/0.5179, allocations: 47.57 MB / 375.7 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.219/0.7369, allocations: 108.4 MB / 484.1 MB, free: 4.191 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004238/0.7374, allocations: 87.95 kB / 484.2 MB, free: 4.105 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6798/1.417, allocations: 79.26 MB / 0.5503 GB, free: 66.13 MB / 378.7 MB Notification: Performance of FrontEnd: time 6.742e-06/1.417, allocations: 0 / 0.5503 GB, free: 66.13 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0005359/1.418, allocations: 71.94 kB / 0.5503 GB, free: 66.06 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: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.02121/1.439, allocations: 3.435 MB / 0.5537 GB, free: 62.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.486e-05/1.439, allocations: 8.031 kB / 0.5537 GB, free: 62.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007926/1.447, allocations: 0.7189 MB / 0.5544 GB, free: 61.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01213/1.46, allocations: 2.656 MB / 0.557 GB, free: 59.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005068/1.46, allocations: 234.6 kB / 0.5572 GB, free: 58.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002218/1.462, allocations: 320.2 kB / 0.5575 GB, free: 58.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01762/1.48, allocations: 4.171 MB / 0.5616 GB, free: 54.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002661/1.48, allocations: 3.984 kB / 0.5616 GB, free: 54.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00171/1.482, allocations: 132 kB / 0.5617 GB, free: 54.14 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002573/1.482, allocations: 146.3 kB / 0.5619 GB, free: 54 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01334/1.496, allocations: 3.41 MB / 0.5652 GB, free: 50.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04683/1.543, allocations: 13.25 MB / 0.5781 GB, free: 37 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.013/1.556, allocations: 6.915 MB / 0.5849 GB, free: 29.19 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004758/1.561, allocations: 1.379 MB / 0.5862 GB, free: 27.81 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01187/1.573, allocations: 3.731 MB / 0.5899 GB, free: 23.98 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.574e-05/1.573, allocations: 47.56 kB / 0.5899 GB, free: 23.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=119): time 9.518e-06/1.573, allocations: 0 / 0.5899 GB, free: 23.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=122): time 0.01923/1.592, allocations: 5.4 MB / 0.5952 GB, free: 18.32 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.583e-05/1.592, allocations: 64.41 kB / 0.5953 GB, free: 18.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005257/1.597, allocations: 1.674 MB / 0.5969 GB, free: 16.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000598/1.598, allocations: 45.7 kB / 0.5969 GB, free: 16.52 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001652/1.6, allocations: 1.414 MB / 0.5983 GB, free: 15.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009522/1.601, allocations: 429.8 kB / 0.5987 GB, free: 14.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001291/1.601, allocations: 35.94 kB / 0.5988 GB, free: 14.62 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002262/1.601, allocations: 365.9 kB / 0.5991 GB, free: 14.26 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001883/1.603, allocations: 0.6403 MB / 0.5997 GB, free: 13.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00209/1.605, allocations: 1.118 MB / 0.6008 GB, free: 12.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003668/1.609, allocations: 1.875 MB / 0.6027 GB, free: 10.22 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.285e-05/1.609, allocations: 4 kB / 0.6027 GB, free: 10.22 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.006626/1.616, allocations: 2.323 MB / 0.6049 GB, free: 7.855 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.043e-05/1.616, allocations: 15.94 kB / 0.6049 GB, free: 7.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.69e-05/1.616, allocations: 16 kB / 0.605 GB, free: 7.824 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00114/1.617, allocations: 267.6 kB / 0.6052 GB, free: 7.551 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002152/1.619, allocations: 359.4 kB / 0.6056 GB, free: 7.199 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007158/1.626, allocations: 5.691 MB / 0.6111 GB, free: 1.105 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003072/1.629, allocations: 83.86 kB / 0.6112 GB, free: 1.023 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004507/1.63, allocations: 71.98 kB / 0.6113 GB, free: 0.9531 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (180): * Single equations (assignments): 176 * 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: 3 * 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: 3 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004212/1.634, allocations: 1.006 MB / 0.6122 GB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009446/1.635, allocations: 177.8 kB / 0.6124 GB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00657/1.642, allocations: 2.131 MB / 0.6145 GB, free: 13.56 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.537e-05/1.642, allocations: 12 kB / 0.6145 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.699e-05/1.642, allocations: 4 kB / 0.6145 GB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.798e-05/1.642, allocations: 7.969 kB / 0.6145 GB, free: 13.54 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01446/1.656, allocations: 4.819 MB / 0.6192 GB, free: 8.582 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.676e-05/1.656, allocations: 0 / 0.6192 GB, free: 8.582 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/1.657, allocations: 175.8 kB / 0.6194 GB, free: 8.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001357/1.659, allocations: 440.1 kB / 0.6198 GB, free: 7.965 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000122/1.659, allocations: 39.92 kB / 0.6198 GB, free: 7.926 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01203/1.671, allocations: 10.09 MB / 0.6297 GB, free: 13.17 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.244e-06/1.671, allocations: 4.031 kB / 0.6297 GB, free: 13.17 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009448/1.681, allocations: 3.011 MB / 0.6326 GB, free: 10.06 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002474/1.683, allocations: 398.8 kB / 0.633 GB, free: 9.652 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007694/1.684, allocations: 35.98 kB / 0.6331 GB, free: 9.617 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001915/1.686, allocations: 75.94 kB / 0.6331 GB, free: 9.543 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004991/1.686, allocations: 104.7 kB / 0.6332 GB, free: 9.438 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001438/1.687, allocations: 32 kB / 0.6333 GB, free: 9.406 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003611/1.69, allocations: 1.142 MB / 0.6344 GB, free: 8.27 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.71e-07/1.69, allocations: 0 / 0.6344 GB, free: 8.27 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005149/1.695, allocations: 0.5743 MB / 0.6349 GB, free: 7.695 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001182/1.697, allocations: 349.8 kB / 0.6353 GB, free: 7.352 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00607/1.703, allocations: 2.073 MB / 0.6373 GB, free: 5.219 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/1.703, allocations: 1.094 kB / 0.6373 GB, free: 5.219 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00393/1.707, allocations: 1.553 MB / 0.6388 GB, free: 3.605 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005322/1.712, allocations: 489.5 kB / 0.6393 GB, free: 3.125 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4158/2.128, allocations: 6.633 MB / 0.6458 GB, free: 93.02 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004065/2.132, allocations: 2.23 MB / 0.6479 GB, free: 92.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001263/2.134, allocations: 131.5 kB / 0.6481 GB, free: 92.3 MB / 410.7 MB Notification: Performance of SimCode: time 5.28e-06/2.134, allocations: 0 / 0.6481 GB, free: 92.3 MB / 410.7 MB Notification: Performance of Templates: time 0.1886/2.322, allocations: 109.5 MB / 0.755 GB, free: 18.64 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & ./Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter_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_Inverter/AIMC_Inverter.csv","../files/Modelica_3.2.3_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches