Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001658/0.001658, allocations: 84.98 kB / 23 MB, free: 1.5 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 172.2 kB / 26.39 MB, free: 7.758 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9254/0.9254, allocations: 158.6 MB / 188.3 MB, free: 2.809 MB / 170.7 MB " [Timeout remaining time 179] 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 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|aimc.is.[0-9,]+.|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|aimc.is.[0-9,]+.|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.re|aimc.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.[0-9,]+..Phi.im|loadInertia.phi|loadInertia.w|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.352e-06/1.352e-06, allocations: 0 / 252.3 MB, free: 7.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.354e-05/1.489e-05, allocations: 6.25 kB / 252.3 MB, free: 7.223 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter): time 0.009958/0.009973, allocations: 12.25 MB / 264.5 MB, free: 10.91 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006212/0.01619, allocations: 4.19 MB / 268.7 MB, free: 6.707 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007396/0.01693, allocations: 83.44 kB / 268.8 MB, free: 6.625 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001458/0.01838, allocations: 0.9708 MB / 269.8 MB, free: 5.648 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001729/0.02011, allocations: 1.289 MB / 271.1 MB, free: 4.352 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009813/0.02109, allocations: 0.861 MB / 271.9 MB, free: 3.488 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002599/0.02369, allocations: 4.065 MB / 276 MB, free: 15.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001443/0.02514, allocations: 1.694 MB / 277.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00212/0.02726, allocations: 2.874 MB / 280.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001691/0.02895, allocations: 1.91 MB / 282.5 MB, free: 8.844 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003712/0.02932, allocations: 500 kB / 283 MB, free: 8.355 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007295/0.03005, allocations: 0.6832 MB / 283.6 MB, free: 7.672 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006132/0.03066, allocations: 1.126 MB / 284.8 MB, free: 6.543 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000929/0.03159, allocations: 1.407 MB / 286.2 MB, free: 5.133 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002626/0.03422, allocations: 3.353 MB / 289.5 MB, free: 1.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.03422, allocations: 4 kB / 289.5 MB, free: 1.766 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.32e-07/0.03422, allocations: 0 / 289.5 MB, free: 1.766 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.541e-05/0.03424, allocations: 0 / 289.5 MB, free: 1.766 MB / 266.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.005047/0.03929, allocations: 4.397 MB / 293.9 MB, free: 13.3 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.03933, allocations: 15.98 kB / 293.9 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002445/0.04177, allocations: 1.146 MB / 295.1 MB, free: 12.14 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00235/0.04412, allocations: 1.984 MB / 297.1 MB, free: 10.11 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001195/0.04424, allocations: 234.6 kB / 297.3 MB, free: 9.875 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003049/0.04455, allocations: 312.3 kB / 297.6 MB, free: 9.57 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002599/0.04715, allocations: 2.327 MB / 299.9 MB, free: 7.148 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.188e-05/0.0472, allocations: 7.953 kB / 299.9 MB, free: 7.141 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001967/0.0474, allocations: 128 kB / 300.1 MB, free: 7.016 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000107/0.0475, allocations: 154.3 kB / 300.2 MB, free: 6.863 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001576/0.04908, allocations: 0.9094 MB / 301.1 MB, free: 5.941 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01038/0.05945, allocations: 10.26 MB / 311.4 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002225/0.06168, allocations: 1.817 MB / 313.2 MB, free: 9.664 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007075/0.06239, allocations: 0.6274 MB / 313.8 MB, free: 9.035 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002651/0.06504, allocations: 2.303 MB / 316.1 MB, free: 6.703 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.06507, allocations: 54.33 kB / 316.2 MB, free: 6.641 MB / 298.7 MB Notification: Performance of pre-optimization done (n=119): time 2.324e-06/0.06507, allocations: 4 kB / 316.2 MB, free: 6.637 MB / 298.7 MB Notification: Performance of matching and sorting (n=122): time 0.004245/0.06932, allocations: 2.578 MB / 318.8 MB, free: 4.008 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.94e-05/0.06935, allocations: 68.39 kB / 318.8 MB, free: 3.93 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001077/0.07042, allocations: 1.292 MB / 320.1 MB, free: 2.609 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.051e-05/0.07048, allocations: 45.7 kB / 320.2 MB, free: 2.559 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007059/0.07119, allocations: 1.55 MB / 321.7 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002394/0.07143, allocations: 464.1 kB / 322.2 MB, free: 0.5391 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002965/0.07172, allocations: 309 kB / 322.5 MB, free: 236 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.07183, allocations: 484.7 kB / 322.9 MB, free: 15.75 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000243/0.07208, allocations: 175.8 kB / 323.1 MB, free: 15.58 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006093/0.07269, allocations: 0.883 MB / 324 MB, free: 14.41 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001188/0.07387, allocations: 1.152 MB / 325.2 MB, free: 12.97 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.07388, allocations: 4 kB / 325.2 MB, free: 12.97 MB / 314.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.001363/0.07524, allocations: 1.291 MB / 326.4 MB, free: 11.65 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.07526, allocations: 16.28 kB / 326.5 MB, free: 11.64 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/0.07528, allocations: 12 kB / 326.5 MB, free: 11.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004225/0.0757, allocations: 234.2 kB / 326.7 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006702/0.07637, allocations: 339.5 kB / 327 MB, free: 11.05 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003156/0.07952, allocations: 6.414 MB / 333.4 MB, free: 4.301 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004543/0.07998, allocations: 55.95 kB / 333.5 MB, free: 4.246 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.399e-05/0.08005, allocations: 59.98 kB / 333.6 MB, free: 4.188 MB / 314.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 (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,5,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004343/0.08049, allocations: 260.1 kB / 333.8 MB, free: 3.922 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001839/0.08067, allocations: 210.9 kB / 334 MB, free: 3.715 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0013/0.08197, allocations: 1.087 MB / 335.1 MB, free: 2.594 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/0.08198, allocations: 12 kB / 335.1 MB, free: 2.582 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.08199, allocations: 8 kB / 335.1 MB, free: 2.574 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.856e-06/0.08199, allocations: 7.969 kB / 335.1 MB, free: 2.566 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003432/0.08543, allocations: 3.242 MB / 338.4 MB, free: 15.22 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/0.08543, allocations: 12.03 kB / 338.4 MB, free: 15.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003708/0.0858, allocations: 155.8 kB / 338.5 MB, free: 15.06 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006793/0.08648, allocations: 391.8 kB / 338.9 MB, free: 14.66 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.418e-05/0.08654, allocations: 35.98 kB / 339 MB, free: 14.62 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005787/0.09232, allocations: 11.2 MB / 350.2 MB, free: 2.855 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.09233, allocations: 7.938 kB / 350.2 MB, free: 2.848 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001605/0.09393, allocations: 1.486 MB / 351.7 MB, free: 1.289 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003449/0.09428, allocations: 286.7 kB / 351.9 MB, free: 1.008 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.0944, allocations: 32 kB / 352 MB, free: 0.9766 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003667/0.09477, allocations: 47.97 kB / 352 MB, free: 0.9297 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001724/0.09494, allocations: 108.7 kB / 352.1 MB, free: 0.8203 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.09498, allocations: 32.11 kB / 352.2 MB, free: 0.7891 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000576/0.09556, allocations: 0.6923 MB / 352.8 MB, free: 100 kB / 330.7 MB Notification: Performance of sort global known variables: time 5e-08/0.09556, allocations: 0 / 352.8 MB, free: 100 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.1246/0.2202, allocations: 0.5265 MB / 353.4 MB, free: 80.23 MB / 330.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 (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (1,13,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002741/0.2205, allocations: 160.8 kB / 353.5 MB, free: 80.15 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001492/0.2219, allocations: 1.362 MB / 354.9 MB, free: 79.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2219, allocations: 0 / 354.9 MB, free: 79.61 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008946/0.2228, allocations: 1.458 MB / 356.3 MB, free: 78.71 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001002/0.2238, allocations: 426 kB / 356.8 MB, free: 78.7 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004884/0.2287, allocations: 4.785 MB / 361.6 MB, free: 76.68 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004979/0.2292, allocations: 0.7774 MB / 362.3 MB, free: 76.57 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004805/0.2297, allocations: 227.4 kB / 362.6 MB, free: 76.5 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005673/0.2303, allocations: 476.8 kB / 363 MB, free: 76.43 MB / 330.7 MB Notification: Performance of SimCode: time 9.82e-07/0.2303, allocations: 0 / 363 MB, free: 76.43 MB / 330.7 MB Notification: Performance of Templates: time 0.02901/0.2593, allocations: 26.78 MB / 389.8 MB, free: 56.73 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.6169632570818067]