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.001428/0.001428, allocations: 179.9 kB / 16.41 MB, free: 5.727 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.384/1.384, allocations: 205.4 MB / 222.5 MB, free: 9.105 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.0007991/0.000799, allocations: 86.34 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003425/0.0003426, allocations: 8 kB / 327 MB, free: 180 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2333/0.2336, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter): time 0.009426/0.2431, allocations: 11.21 MB / 385.8 MB, free: 36.69 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006905/0.25, allocations: 3.965 MB / 389.7 MB, free: 33.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001682/0.2517, allocations: 66.12 kB / 389.8 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001737/0.2535, allocations: 0.7181 MB / 390.5 MB, free: 32.83 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002281/0.2558, allocations: 1.041 MB / 391.6 MB, free: 31.79 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001218/0.257, allocations: 0.5935 MB / 392.2 MB, free: 31.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002974/0.26, allocations: 3.884 MB / 396 MB, free: 27.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00196/0.262, allocations: 2.178 MB / 398.2 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001497/0.2635, allocations: 1.241 MB / 399.5 MB, free: 23.85 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001424/0.2649, allocations: 1.591 MB / 401.1 MB, free: 22.25 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000299/0.2652, allocations: 204 kB / 401.3 MB, free: 22.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008938/0.2661, allocations: 395.8 kB / 401.6 MB, free: 21.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004311/0.2666, allocations: 0.7356 MB / 402.4 MB, free: 20.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005779/0.2671, allocations: 0.7265 MB / 403.1 MB, free: 20.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003178/0.2703, allocations: 5.396 MB / 408.5 MB, free: 14.78 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2703, allocations: 0 / 408.5 MB, free: 14.78 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2704, allocations: 0 / 408.5 MB, free: 14.78 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.000108/0.2705, allocations: 0 / 408.5 MB, free: 14.78 MB / 298.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.007982/0.2785, allocations: 3.676 MB / 412.2 MB, free: 11.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.2785, allocations: 8.031 kB / 412.2 MB, free: 11.03 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004013/0.2825, allocations: 0.8077 MB / 413 MB, free: 10.21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003465/0.286, allocations: 2.126 MB / 415.1 MB, free: 8.031 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001216/0.2862, allocations: 234.2 kB / 415.3 MB, free: 7.801 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004152/0.2866, allocations: 315.9 kB / 415.7 MB, free: 7.492 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00654/0.2931, allocations: 4.203 MB / 419.9 MB, free: 3.238 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.89e-05/0.2932, allocations: 11.89 kB / 419.9 MB, free: 3.227 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002559/0.2935, allocations: 131.9 kB / 420 MB, free: 3.098 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001085/0.2936, allocations: 150.3 kB / 420.1 MB, free: 2.949 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005509/0.2991, allocations: 3.593 MB / 423.7 MB, free: 15.35 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02017/0.3193, allocations: 13.24 MB / 437 MB, free: 1.777 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006797/0.3261, allocations: 6.894 MB / 443.9 MB, free: 9.98 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002169/0.3283, allocations: 1.383 MB / 445.3 MB, free: 8.602 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00601/0.3344, allocations: 3.742 MB / 449 MB, free: 4.766 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.178e-05/0.3344, allocations: 43.56 kB / 449 MB, free: 4.715 MB / 330.7 MB Notification: Performance of pre-optimization done (n=119): time 2.595e-06/0.3344, allocations: 0 / 449 MB, free: 4.715 MB / 330.7 MB Notification: Performance of matching and sorting (n=122): time 0.01108/0.3455, allocations: 5.466 MB / 454.5 MB, free: 15.05 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.941e-05/0.3456, allocations: 64.41 kB / 454.6 MB, free: 14.97 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002551/0.3481, allocations: 1.697 MB / 456.3 MB, free: 13.27 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.564e-05/0.3483, allocations: 45.7 kB / 456.3 MB, free: 13.21 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009577/0.3492, allocations: 1.403 MB / 457.7 MB, free: 11.8 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003269/0.3496, allocations: 429.8 kB / 458.1 MB, free: 11.37 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.873e-05/0.3496, allocations: 32 kB / 458.2 MB, free: 11.34 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.3498, allocations: 369.9 kB / 458.5 MB, free: 10.97 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/0.3509, allocations: 0.6403 MB / 459.2 MB, free: 10.33 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001366/0.3523, allocations: 1.118 MB / 460.3 MB, free: 9.004 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001324/0.3536, allocations: 0.8535 MB / 461.1 MB, free: 8.152 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.224e-06/0.3536, allocations: 4 kB / 461.1 MB, free: 8.148 MB / 346.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003798/0.3574, allocations: 2.327 MB / 463.5 MB, free: 5.781 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.941e-05/0.3575, allocations: 12 kB / 463.5 MB, free: 5.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.349e-05/0.3575, allocations: 16 kB / 463.5 MB, free: 5.754 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006886/0.3582, allocations: 279.1 kB / 463.8 MB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001303/0.3595, allocations: 359.4 kB / 464.1 MB, free: 5.121 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005069/0.3646, allocations: 5.683 MB / 469.8 MB, free: 15.04 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001346/0.366, allocations: 84.02 kB / 469.9 MB, free: 14.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.3661, allocations: 68 kB / 469.9 MB, free: 14.89 MB / 362.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.001966/0.368, allocations: 1.005 MB / 470.9 MB, free: 13.88 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003241/0.3684, allocations: 177.8 kB / 471.1 MB, free: 13.7 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003707/0.3721, allocations: 2.127 MB / 473.3 MB, free: 11.51 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.197e-05/0.3721, allocations: 12 kB / 473.3 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.02e-05/0.3721, allocations: 8 kB / 473.3 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/0.3722, allocations: 3.984 kB / 473.3 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008537/0.3807, allocations: 4.839 MB / 478.1 MB, free: 6.508 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.3808, allocations: 0 / 478.1 MB, free: 6.508 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007568/0.3815, allocations: 175.9 kB / 478.3 MB, free: 6.336 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001143/0.3827, allocations: 449.7 kB / 478.7 MB, free: 5.883 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.836e-05/0.3828, allocations: 35.92 kB / 478.8 MB, free: 5.848 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009691/0.3925, allocations: 10.08 MB / 488.8 MB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.911e-06/0.3925, allocations: 3.984 kB / 488.8 MB, free: 11.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005007/0.3975, allocations: 3.007 MB / 491.8 MB, free: 8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009115/0.3985, allocations: 406.7 kB / 492.2 MB, free: 7.582 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002255/0.3987, allocations: 31.98 kB / 492.3 MB, free: 7.551 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008597/0.3996, allocations: 75.94 kB / 492.3 MB, free: 7.477 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002472/0.3998, allocations: 92.83 kB / 492.4 MB, free: 7.387 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.241e-05/0.3999, allocations: 35.98 kB / 492.5 MB, free: 7.352 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001765/0.4017, allocations: 1.162 MB / 493.6 MB, free: 6.195 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4017, allocations: 4 kB / 493.6 MB, free: 6.191 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002055/0.4038, allocations: 0.539 MB / 494.2 MB, free: 5.652 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 7 (aimc.inertiaRotor.w,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.phi) * 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.0003424/0.4041, allocations: 159 kB / 494.3 MB, free: 5.488 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003475/0.4076, allocations: 2.085 MB / 496.4 MB, free: 3.348 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.4076, allocations: 0 / 496.4 MB, free: 3.348 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002319/0.41, allocations: 1.531 MB / 497.9 MB, free: 1.75 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002247/0.4122, allocations: 0.4978 MB / 498.4 MB, free: 1.258 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009495/0.4217, allocations: 6.625 MB / 0.4932 GB, free: 10.57 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001932/0.4237, allocations: 2.231 MB / 0.4954 GB, free: 8.309 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005382/0.4242, allocations: 131.4 kB / 0.4955 GB, free: 8.18 MB / 394.7 MB Notification: Performance of SimCode: time 1.473e-06/0.4243, allocations: 0 / 0.4955 GB, free: 8.18 MB / 394.7 MB Notification: Performance of Templates: time 0.3054/0.7297, allocations: 108.5 MB / 0.6015 GB, free: 27.77 MB / 394.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/jenkins/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